- Cannot be removed by an author;
- Shared between a root page and every descendant of this page (children, grandchildren, …), even if they use different templates or page components;
- Editable only from the root page.
Step by step solution
- Add an iparsys to the root page template and a menu instance to this iparsys;
- Statically include the menu instance in the root page component;
- Create a page template and a page component for the descendant pages;
- Add an empty iparsys to the descendant page template, using the same name of the iparsys defined in (1);
- Include that iparsys in the descendant page component, setting its wcmmode to disabled;
- You may also need
- to adjust the component layout to the edit mode (Classic or Touch UI);
- to correct the content hierarchy of pages already created, to reflect changes to page templates.
How does it work?
Iparsys takes care of the content inheritance between a page and its child pages. Since we have a single instance of iparsys (the one defined at the root page template), we’ll end up with all descendants referring to the exactly same instance.
By including the menu instance in the root page component instead of including its container iparsys, we disable the author’s ability of moving/removing the menu instance and the ability of adding more components to that iparsys.
Then setting wcmmode to disabled, at the descendant page component, is enough to ensure that an author won’t be able to break or override the iparsys inheritance.
As usual, a sample project can be found on GitHub.