Build Dashboard Pages in Blocks

Dashboard Pages are the back-office of your app, allowing site builders to manage the app's data and settings. You can see examples of Dashboard Pages in the Wix apps, such as Stores and Bookings.

Important:

Read our UX guidelines to build useful and successful Dashboard Pages.

Examples:

To see examples of dashboard pages, open the following templates and go to the Dashboard Interface dashboard tab.

Or, try out the Coffee catalog tutorial, which uses multiple dashboard pages.

Create a Dashboard Page

To add dashboard pages to your Blocks app:

  1. Click the Dashboard Interface dashboard  icon in the left menu.
  2. Click Create Extension.
  3. Click Dashboard Page.

The Dashboard Page you created includes:

  • A canvas where you can add elements, such as layout tools, buttons, input texts fields and so on. Blocks provides several template for a commonly used Dashboard user-interface (UI), which you can customize as you wish. Note our UX guidelines when designing the page.
  • A code section to add code to your dashboard. 

Rename, reorder or hide your Dashboard Pages

You can impact how users see your app's Dashboard Pages in their site menu. Click the More Actions more-actions icon next to the page's name to rename, reorder or hide it from the menu.

multiple page actions

Naming rules:

  • If you create only one Dashboard Page and rename it, users won't see its name. They will see it in their site's Dashboard menu, named after your app.
  • If you create more than one Dashboard Page, you can rename and reorder the pages. Users will see all the pages in their site's Dashboard menu, in a directory named under your app's name and with the names and order you determined in Blocks.

Add code to your Dashboard Page

Use your Dashboard Page's code section to add code to your Dashboard Page. Your code can include:

To add code to your dashboard page, open your dashboard page and go to its code section (if you don't see the code section, click the Maximize icon).

Assign an Action Button to the Dashboard Page

One of the most common ways to open a Dashboard Page is from the Main Action Button in one of your widget's Action Buttons. To do this: 

  1. Go to the Editor Experience Configuration tab.
  2. Click on the widget or element that you want to configure. 
  3. Click Edit Action Bar
  4. Hover over the main action button (the left button).
  5. Click Action Button Settings.
  6. Select Dashboard and choose one of your dashboard pages.  

action button settings

Open a Dashboard Page from a Custom Panel

Adding a link to the Dashboard Page from a custom panel enhances its visibility and accessibility for users.

  • Link to the page from a panel button with no code.
  • Use the wix-editor module to open the page using code. See code example

Open a Dashboard Page from another Dashboard Page

Navigating between your Dashboard pages can create seamless workflows, such as a step-by-step wizard. Use the dashboard SDK to lead users from one Dashboard Page to another. See code example

Create a dashboard page for a list and another for individual items

A common dashboard pattern involves creating two connected pages: one that displays a list of items (like products, orders, or users) and another that shows detailed information for individual items. This master-detail pattern allows users to browse through multiple items and then drill down into specific details. Learn how to implement this pattern using the dashboard SDK's navigate() and observeState() functions to pass data between pages. See the complete guide.

Self hosted dashboard extensions

You can also add self hosted dashboard extensions to a Blocks app.

To add a self hosted extension, go to the Dashboard Interface and click Create Extension > Self-Hosted Extensions.

Did this help?