> 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: Build a Dashboard Sidebar Category in Studio Two

## Article: Build a Dashboard Sidebar Category in Studio Two

## Article Link: 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

## Article Content:

# Build a Dashboard Sidebar Category 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 a configuration file with no code of its own. It groups your site's dashboard pages under one title in the dashboard sidebar. Most of the work happens in the pages: each one links to the category and sets its place in it.

Follow the instructions below to:

1. Scaffold the sidebar category and its pages.
2. Set the configuration.
3. Order the pages in the category.

## Step 1 | Scaffold the sidebar category and its pages

Start from a generated dashboard sidebar category rather than an empty folder, so the file structure and registration are already in place. Follow [Add a Dashboard Sidebar Category Extension in Studio Two](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) to generate the category and link your dashboard pages to it.

## Step 2 | Set the configuration

`<category-folder>.extension.ts` is the configuration file you own. It declares the category's ID and title, and exports the ID as `APP_SIDEBAR_CATEGORY_ID` for pages to import. Keep that export, because your pages import it.

To change the label in the sidebar, edit `title`. To order the category among your other sidebar categories, add `priority`. Smaller numbers appear higher, and the default is `0`.

For every field, 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#configuration-fields).

## Step 3 | Order the pages in the category

The sidebar orders the pages in a category by each page's `priority`. Smaller numbers appear higher, and the default is `0`. For an example, see [Sidebar order](https://dev.wix.com/docs/overview/extensions-framework/dashboard-extensions/dashboard-sidebar-categories.md#sidebar-order).

To set a page's place in the category, add `priority` to its configuration file. For example:

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

To check the order, refresh the site dashboard and click **Apps**, then your category's title.

When the sidebar category behaves the way you want, click **Publish** in the Studio Two editor to ship it 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)
- [Add a Dashboard Sidebar Category Extension in Studio Two](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)
- [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)
- [Dashboard Page Extension Files and Code](https://dev.wix.com/docs/dashboard-extensions/dashboard-pages/dashboard-page-extension-files-and-code.md)
- [Dashboard Sidebar Categories](https://dev.wix.com/docs/overview/extensions-framework/dashboard-extensions/dashboard-sidebar-categories.md)