How to create a section without adding it to the menu

Sometimes we need to create a section in KAS but it doesn't necessarily needs to be part of the menu. Similar to edit sections.

A page that does not belong in the menu uses the existing registered main-section/subsection context and an explicit option string. Create its page file in the owning Core or project-theme section; do not create a duplicate menu option merely to link to it.

$actionButton = [[
    'link' => getPath([
        'menuName' => 'CATALOG', 'submenuName' => 'ITEMS',
        'pageName' => 'ADD ITEM', 'optiontype' => 'FA'
    ]),
    'text' => 'Add item', 'target' => '_self'
]];

Adapt the names to the actual registered hierarchy and page. KAS supplies id0 when an option string is given without an ID; explicit id0 remains supported. For an Edit page supply the real authorized row ID and required options. For a normal registered page, omit the override and use its registered options.

Initialization rebuilds menu records after section definitions change: deploy the intended definitions, log out, run the native /kas/init confirmation on that installation, then sign in and validate navigation. A non-menu page intentionally has no separate normal-menu option. See Creating a KAS section and getPath() for the full contracts.

Full arrays are the modern extensible configuration. Strings remain supported legacy shorthand/quick syntax. Prefer full arrays for new definitions; use only keys supported by the owning field or component.