Sidebar Location

The Sidebar Location provides powerful functionalities that you can integrate into your stack to analyze your entry content and recommend ideas.
These Sidebar locations allow users to provide additional capabilities over content, thus optimizing the content to suit their requirements.

Examples of such sidebar locations are SEO tag recommendations, sentiment analysis, language translation, and so on.

Let's see how to add sidebar location to your app:

  • Via the Developer Hub Console:
    To add the sidebar location to your app via the Developer Hub console, login to your Contentstack Account and follow the steps given below:

    1. Click the Developer Hub icon on the left navigation panel.
    2. Select an application for which you want to add the sidebar location.
    3. Click the UI Locations tab. To set the App URL, click the View Hosting Settings link. You will be redirected to the Hosting tab.
    4. In the Hosting tab, you can select Hosting with Launch or Custom Hosting options. Select the Custom Hosting option to enter the hosted URL of your application. Click the Save button to save your hosting configuration.
    5. Navigate to the UI Locations tab to configure the Sidebar location.
    6. Hover over the Sidebar location, and click the + Add button.
    7. On the resulting Configuration page, set up the configurations for sidebar location by providing details such as Name, Path, and Description. You can also enable the configuration using the Enabled toggle button.
      You can configure any UI location as mandatory using the Required toggle button. If the toggle is enabled, the location becomes mandatory and cannot be disabled. Whereas, if the toggle is disabled, the UI location is available to use but not mandatory. 

      Additional Resource: Refer to the Marketplace App Manifest documentation for comprehensive details.

    8. Finally, click the Save button to save the sidebar location’s configuration details.

      You will see the details of the configured UI location on the UI Locations tab in the App Configuration screen after installing the app.

      You can enable or disable the non-required UI locations.

      Apps which have the Sidebar location configured will be visible in the left navigation panel under the Widgets section.

      Navigate to the stack. In the right navigation, you will see the widgets icon. Click to view the sidebar widget.


Note: A single app supports up to three sidebar locations.

You can create new sidebar locations by writing your custom code, or you can use the prebuilt boilerplate and modify the given code to suit your requirements.

Was this article helpful?