CLI Documentation Notice
You're viewing documentation for the new Wix CLI, which we recommend for all new projects.
You can add dashboard pages to your project using dashboard page extensions. These pages let you or your users manage sites and business data from the dashboard. They're not visible to site visitors.
The Wix CLI makes it easy to create and develop dashboard page extensions, and to manage them in the sidebar.
For general information about this extension type, read About Dashboard Page Extensions.
Follow the instructions below to:
Once this task is complete, you have a dashboard page extension that adds a new dashboard page to either your headless project's site, or your users' sites.
Run the generate command and follow the prompts to create a dashboard page extension.
Enter a name for your page's folder. The CLI will create this directory with the chosen name containing your page's files.
Enter the route for your page. The route is the path that is appended to the dashboard base URL to access the dashboard page.
Upon completion, the extension files will be created in your project directory with the following structure:
For more information about these files, see Dashboard Page Extension Files and Code.
Run the dev command to open the dev menu.
Click the link to open the dashboard in your browser and navigate to the page you've created. Leave this window open.
Go to your dashboard page's .tsx file and change subtitle in Page.Content to "Hello world!":
Save your file.
Navigate back to the dashboard page in your browser and see your changes.
If you use a dashboard menu plugin to navigate to your dashboard page, you can customize your dashboard page extension to interact with any data passed from the dashboard page that hosts the menu plugin.
@wix/dashboard package is installed in your project.observeState() method.
Once your project is ready for production, you can build and deploy it.
Note: When you release an app project, you release a new version of the app allowing you to publish the app to the Wix App Market or install it on a site with a direct install URL. You can view your app's versions in the app dashboard.
To delete an existing dashboard page from your project:
.use() statements for the extension from the extensions.ts file.For app projects:
If you already have a version of your app project, you must build and deploy the project again after removing the dashboard page files.