> To build or manage a Wix site with an AI agent, follow https://www.wix.com/headless/skill.md
> It builds a new Wix site or puts your own site online, from a prompt, and keeps changing it afterwards. The pages are code in any web technology, and Wix runs the backend.
> It works through the Wix plugin (the Wix MCP and the Wix skills), the Wix CLI or no Wix login, and puts the site live on Wix hosting or on another host.
> Business features include a store, bookings, events and tickets, a restaurant, a blog, forms, members and many more.
> Read the Wix skills online at https://www.wix.com/skills
> 
> Portal Navigation:
> 
> - Append `.md` to any URL under `https://dev.wix.com/docs/` to get its markdown version.
> - Pages are either content pages (article or reference text) or menu pages (a list of links to child pages).
> - To get a menu page, truncate any URL to a parent path and append `.md` (e.g. `https://dev.wix.com/docs/sdk.md`, `https://dev.wix.com/docs/sdk/core-modules.md`).
> - If a reference page seems to be missing its schema (parameters, return types, or type definitions), append `?schema=true` to its `.md` URL (e.g. `https://dev.wix.com/docs/contexts/contexts/stores/category-info/use-category-info-context.md?schema=true`).
> - Top-level index of all portals: https://dev.wix.com/docs/llms.txt
> - Full concatenated docs: https://dev.wix.com/docs/llms-full.txt

## Resource: Add a Dashboard Sidebar Category Extension in Studio Two

## Article: Add a Dashboard Sidebar Category Extension in Studio Two

## Article Link: https://dev.wix.com/docs/studio-two/code-your-site/build-a-custom-dashboard/dashboard-sidebar-categories/add-a-dashboard-sidebar-category-extension-in-studio-two.md

## Article Content:

# Add a Dashboard Sidebar Category Extension in Studio Two

A [dashboard sidebar category](https://dev.wix.com/docs/studio-two/code-your-site/build-a-custom-dashboard/dashboard-sidebar-categories/about-dashboard-sidebar-categories.md) is an entry in the dashboard sidebar that groups your site's dashboard pages under one title.

Follow the instructions below to:

1. Add a dashboard sidebar category extension to your site project.
2. Add dashboard pages to the sidebar category.
3. Check the sidebar category in the dashboard.
4. Publish your site with the sidebar category.

> **Note:** You can also ask **Aria**, Wix's AI assistant, to create the extension and link your pages to it.

## Step 1 | Add a dashboard sidebar category

To add a dashboard sidebar category:

1. In the Studio Two editor, open the **Code** tab.
2. In the VS Code sidebar, open the **Wix Extension Builder**.

   ![the Wix Extension Builder in the VS Code activity bar](https://wixmp-833713b177cebf373f611808.wixmp.com/images/6bff2816a5bfe47ed855a1859cd89d5a.png)

3. Under **Create an Extension**, choose **Dashboard**, then **Dashboard Sidebar Category**.
4. Fill in the form:
   - **Sidebar group title**: The title of the category in the dashboard sidebar.
   - **Enter the folder name for the new sidebar category**: The folder for the category's file, in lowercase letters, numbers, hyphens, and slashes.
5. Click **Generate**.

You can find the new file under `src/extensions/dashboard/sidebar-categories/<category-folder>/`. The extension is registered in your project's `extensions.ts` and listed under **My Extensions**. For the file's fields, see [Dashboard Sidebar Category Extension Files and Code](https://dev.wix.com/docs/dashboard-extensions/dashboard-sidebar-categories/dashboard-sidebar-category-extension-files-and-code.md).

## Step 2 | Add dashboard pages to your sidebar category

A sidebar category appears in the dashboard sidebar only when at least two dashboard pages link to it. If only one page links to it, that page appears directly under **Apps**, without the category. If your site project doesn't have two dashboard pages yet, see [Add a Dashboard Page Extension in Studio Two](https://dev.wix.com/docs/studio-two/code-your-site/build-a-custom-dashboard/dashboard-pages/add-a-dashboard-page-extension-in-studio-two.md).

To add a dashboard page to the sidebar category:

1. Open the page's `<page-folder>.extension.ts` file, under `src/extensions/dashboard/pages/<page-folder>/`.
2. Import the category's ID from the category's file:

   ```ts
   import { APP_SIDEBAR_CATEGORY_ID } from '../../sidebar-categories/<category-folder>/<category-folder>.extension.ts';
   ```

3. Set `pageCategoryId` to the category's ID:

   ```ts
   export default extensions.dashboardPage({
     // The page's other fields stay as they are.
     pageCategoryId: APP_SIDEBAR_CATEGORY_ID,
   });
   ```

4. Save the file.

Repeat these steps for each page you want in the category.

You can also change the category's title, or set priorities to order the category and its pages. For the full workflow, see [Build a Dashboard Sidebar Category in Studio Two](https://dev.wix.com/docs/studio-two/code-your-site/build-a-custom-dashboard/dashboard-sidebar-categories/build-a-dashboard-sidebar-category-in-studio-two.md).

## Step 3 | Check the sidebar category

To check the sidebar category:

1. Open the site dashboard, or refresh it if it's already open, so it loads your changes.
2. In the sidebar, click **Apps**.
3. Click your sidebar category's title. Its pages appear under it.

If a page appears under **Custom Pages** instead, check that its `pageCategoryId` matches the `id` in the category's file.

## Step 4 | Publish your site

When you're ready, click **Publish** in the Studio Two editor to ship the extension with your site.

## See also

- [About Dashboard Sidebar Categories](https://dev.wix.com/docs/studio-two/code-your-site/build-a-custom-dashboard/dashboard-sidebar-categories/about-dashboard-sidebar-categories.md)
- [Build a Dashboard Sidebar Category in Studio Two](https://dev.wix.com/docs/studio-two/code-your-site/build-a-custom-dashboard/dashboard-sidebar-categories/build-a-dashboard-sidebar-category-in-studio-two.md)
- [Dashboard Sidebar Category Extension Files and Code](https://dev.wix.com/docs/dashboard-extensions/dashboard-sidebar-categories/dashboard-sidebar-category-extension-files-and-code.md)
- [About Studio Two Extensions](https://dev.wix.com/docs/studio-two/get-started/about-studio-two-extensions.md)
- [Dashboard Sidebar Categories](https://dev.wix.com/docs/overview/extensions-framework/dashboard-extensions/dashboard-sidebar-categories.md)