[Solved] How to programmaticaly add custom content type to navbar?

I have a custom Dexterity container, and I'd like to add it to the navbar without using /@@navigation-controlpanel. Is there some settings I can add to the profile of the addon for my content type?

this should do what you want:

<!-- registry.xml in your profile folder -->
<record name="plone.displayed_types" interface="Products.CMFPlone.interfaces.controlpanel.INavigationSchema" field="displayed_types">
  <value purge="False">
    <element>Your CT</element>
  </value>
</record>
1 Like

Plone Foundation Code of Conduct