Skip to content

NavItems

Roland Toth Pal edited this page Oct 28, 2019 · 2 revisions

Add pages to navigation

Enables adding pages and appending them in the sidebar (Reno theme) or the top navigaton (Default theme). Items will be appended to the "Pages" section.

Clicking on a custom nav item will load a page list containing its children. There's an "Edit" icon to the right of the items that opens the page for editing. This is available only if the user has proper rights and for items selected from the tree.

From version 1.5.4 it is possible to group pages under a submenu if you add supply a submenu name. If the name starts with "!" then it will be available for SuperUsers only.

Additional items

If you need to add items that are unavailable from the pages tree you can add them here. Use the syntax "Title: url" where "url" needs to be relative to the admin.

Example:

Translator: setup/language-translator/edit/?language_id=1066&textdomain=site--templates--_strings-php
// commented out item
// "!" indicates visible only for SuperUsers
! AdminOnSteroids: module/edit?name=AdminOnSteroids

If the title starts with "!" then it will be visible only for SuperUsers. These items will have an asterisk (*) suffix to indicate visibility.

Note that this feature is primarily for adding non-admin pages to the navigation. Some of the pages under the "Admin" page may not work correctly.

Custom navigation items after item "Recent":

NavItems

Submenus

From v1.1.2 it is possible to add submenus to custom nav items. To add one you enclose items with a start and end tag:

-- ! Modules: module/
AdminOnSteroids: module/edit?name=AdminOnSteroids
Tracy Debugger: module/edit?name=TracyDebugger
--

The start tag is -- followed by the menu title, and optionally a link. Use -- for the end tag.

The ! character for setting access to superuser-only works here too. The only difference is that the asterisk character won't be added to the submenu title. In this case the entire submenu with its sub-items will be skipped for non-superusers.

Clone this wiki locally