A site page extension adds a full page to the user's site.
Important: A site page is structured as a series of sections, each containing a site widget. This means that before setting up a page, your app must already have have at least one widget.
To create a site page extension:
- In the Custom Apps page, select an existing app that contains site widgets.
- In the left menu, select Extensions.
- Click Create Extension and select Site Page.
- Configure the page’s settings:
- Page name: This name will appear in the site's Pages panel.
- Page ID: The ID will be used to refer to the page in code, and will also become the default URL slug.
- Select whether to prevent users from duplicating the page.
- Select whether to add the page automatically to the site menu after installation.
Note: Your app can automatically add a page only to a regular site menu in the Wix Editor. It cannot add a page to advanced menus or to menus in Wix Studio.
- To define which widgets to include in the page, click + Add Widgets and select any of your app’s widgets. Each widget will be added to the page in its own section in the order that you defined.
Note: If you include a widget that is set as essential to your app's functionality, deleting the page from a site will delete the entire app.
- Click Save.