This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
multi-level_navigation [2017/03/18 23:04] Timbow [Insert Navigation Links into the Page Template] |
multi-level_navigation [2021/10/11 18:31] (current) Timbow [Insert Navigation Links into the Page Template] |
||
---|---|---|---|
Line 2: | Line 2: | ||
aka 'Child Menus', 'Page Hierarchies', 'Nested Menus' and a lot of other things | aka 'Child Menus', 'Page Hierarchies', 'Nested Menus' and a lot of other things | ||
===== Create a Page Hierarchy of Parents and Children ===== | ===== Create a Page Hierarchy of Parents and Children ===== | ||
- | In Page Options you can mark a page as the 'Child' of another. This has the effect of giving the page a url of parent\child but doesn't alter the navigation menu links. GS supports any number of levels of url hierarchy. | + | In Page Options you can choose a 'Parent' to mark a page as the 'Child' of another. This has the effect of giving the page a url of example.com/parent/child but doesn't alter the navigation menu links. GS supports any number of levels of url hierarchy, but it's native menu function only displays a single, simple list of links. |
===== Insert Navigation Links into the Page Template ===== | ===== Insert Navigation Links into the Page Template ===== | ||
- | The default template tag in GetSimple ''get_navigation()'' creates a simple, single series of links to pages marked for inclusion in the menu arranged in order as <li> elements. | + | The default ''get_navigation()'' template tag creates a simple, single series of links to pages marked for inclusion in the menu arranged in order as ''<li>'' elements. To generate nested lists (eg for dropdown menus) or to separate different levels for different menus or to display page titles instead of the specified menu text a plugin is used. [[http://get-simple.info/extend/plugin/i18n/69/|I18N]] is the most popular plugin or there are more simple plugins also in extend. Advanced users can create their own custom menu functions. |
===== Style the Navigation with CSS ===== | ===== Style the Navigation with CSS ===== | ||
- | Will be a brief 'how-to' for sub-pages and hierarchical navigation | + | Not all GetSimple themes have CSS to display more than a single ''<ul>'' as a nav menu. You can style your own menus or can to choose a theme which supports multi level navigation. |