Questions about custom sidebar

How do I code a module to add a custom side bar to the general page?
“location”: “admin_system_menu”, so it is added to the side bar of the System menu.

What I want to make is a side bar only for my app.
For example, I want to change the system to my app, and I only want the menu of my app to be listed.

It’s my module. Please advise me on what to do.
This is my module.

 "modules": {
    "webSections": [
      {
        "key": "connect-node-app-section",
        "location": "admin_system_menu",
        "weight": 0,
        "name": {
          "value": "Connect Example Node App"
        }
      }
    ],
    "generalPages": [
      {
        "key": "index",
        "location": "system.top.navigation.bar",
        "name": {
          "value": "My addon"
        },
        "url": "/",
        "conditions": [
          {
            "condition": "user_is_logged_in"
          }
        ]
      },
      {
        "key": "my-addon-page-name",
        "location": "admin_system_menu/connect-node-app-section",
        "name": {
          "value": "My addon"
        },
        "url": "/hello-world",
        "conditions": [
          {
            "condition": "user_is_logged_in"
          }
        ]
      },
      {
        "key": "my-addon-page-name2",
        "location": "admin_system_menu/connect-node-app-section",
        "name": {
          "value": "My addon2"
        },
        "url": "/about-us",
        "conditions": [
          {
            "condition": "user_is_logged_in"
          }
        ]
      }
    ]
  }

@jihyunwork2,

Connect does not have a way to declaratively add sidebar menu for general pages via the app descriptor. Hence, your app must provide the sidebar as part of rendering the general page.

1 Like