Skip to content

Add anchor menu to content type edit screen

With the anchor menu you can increase visibility of certain Field Types, which provide more complex functionality, by separating them from the Field definitions section in content type configuration screen. One example of such Field Type would be SEO, because it handles functionality that applies to all content items of the content type. You can use the anchor menu feature with other Field Types, including custom ones.

See the following example to learn how you can add a Field Type as an anchor menu.

Modify YAML configuration

Modify the Field Type visibility under the ibexa.system.<scope>.admin_ui_forms.content_type_edit.field_types configuration key:

1
2
3
4
5
6
7
8
9
ibexa:
    system:
        admin_group:
            admin_ui_forms:
                content_type_edit:
                    field_types:
                        <field_type_identifier>:
                            meta: true
                            position: 100

Where keys have the following meaning:

  • field_type_identifier - replace this key with an identifier of the Field Type that you want to make more prominent. In case of SEO, this key is ibexa_seo.
  • meta - when this flag is set to true, it separates the Field Type from the Field definitions section and puts it in an anchor menu
  • position - decides about the Field Type's position on the content type edit screen and in the content item, in relation to other Field Types

Additionally, setting meta to true adds a toggle for enabling or disabling the Field Type. In case of SEO, it adds the Enable SEO for this content type toggle. Enable the toggle to display the SEO section on the content item edit page.

SEO anchor menu

Note

If you add multiple Field Types as anchor menus, they are automatically displayed as separate sections.