How to limit the custom section view to only display in the Media Section

I customized two section views and I hope to limit them to be displayed only in the Media Section. However, they are also displayed in the document type Section. It seems that the “sections”: [ “media” ] in the contentApps node doesn’t work. How should I modify the package.manifest?

{
  "contentApps": [
    {
      "alias": "damTags",
      "name": "Tags",
      "icon": "icon-tag",
      "view": "/App_Plugins/Dam/tags.html",
      "sections": [ "media" ]
    },
    {
      "alias": "damVersions",
      "name": "Versions",
      "icon": "icon-book-alt-2",
      "view": "/App_Plugins/Dam/versions.html",
      "sections": [ "media" ]
    }
  ],
  "dashboards": [
    {
      "alias": "damSearch",
      "name": "Dam Search",
      "sections": [ "media" ],
      "view": "/App_Plugins/Dam/search.html",
      "weight": 3
    },
    {
      "alias": "damReport",
      "name": "Dam Report",
      "view": "/App_Plugins/Dam/report.html",
      "sections": [ "media" ],
      "weight": 2
    }
  ],
  "javascript": [
    "/App_Plugins/Dam/tags.js",
    "/App_Plugins/Dam/search.js",
    "/App_Plugins/Dam/report.js",
    "/App_Plugins/Dam/versions.js"
  ]
}

This is the display I hope for

I don’t want it to be displayed here

Hullo ^^
I haven’t made a custom content app myself, but doing some reading on it from the official documentation’s Extending: Content Apps it shows an example of limiting them by type that looks a little different from what you have there.

Have you tried using the ‘show’ directive? Seems it has special syntax too.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.