Administration/Menu
From Lanius CMS Wiki
Navigation and access to content in your Web site is provided through menus.
Menus in Lanius CMS are groups of links to content, sections, categories, components or external pages. These links are called 'Menu Items'. Each menu must have an identification name which is only used internally by Lanius CMS. A menu only becomes visible on a site if it has a published mod_menu main menu module which references it.
A menu in Lanius CMS is managed through the Menu -> Menu's Management menu item.
The settings that are editable through the Add/Edit Page are :
The Menu Name (this is the identification name used by Lanius CMS to identify this menu within the code. It must be unique. It is recommended to use no space within this name as this name does not show on the site.)
The Menu Items associated to a particular menu. These are the links to various types of content in your site
Each menu created in Lanius CMS is only visible via a module (the mod_menu Main Menu Module, a "module" in Lanius CMS is a container that can be displayed anywhere your site's template allows it to be displayed). The Module Title is the title of the mod_menu Main Menu Module as it will appear on the page if you choose to show it.
A series of parameters that define the Menu Module are the concern the Menu Module itself: They are accessed through the 'System: Modules Manager': Modules -> Site Modules. The parameters that can be edited in the module are Title, Position of the menu on the page, Access group, Show on, Style, Menu Name (must be same as name given to new menu in Menu ->Manage menu categories), CSS Class
You may have a Menu associated to different menu modules displaying the same Menu Items; this means that if multiple copies of a Menu Module associated to the same Menu are deleted, it will not delete the Menu as defined in the Menu Manager (including its "Menu Items").
Contents |
Manage Menus
On a default installation there is a list of existing Menus already defined under Administration Backend Menu.
Add / Edit Menu Items
You may add or edit Menu Items for each of the menus showing on the Manage menu categories list page. From the Manager window, click the select the Menu you want to edit, or alternatively go to "Menu->the-menu-you-choose-to-edit (all Menus have a direct link to this function in the drop-down under "Menus".) A "Manage menu items [the-menu-you-choose-to-edit]" window will display, with a list of all Menu Items associated to this Menu.
Each Menu Item operates independently from other Menu Items, so changing the parameters of one item in no way affects the display or parameters of other Menu Items.
Adding a Menu Item
Click on the "New" icon in the toolbar. It opens a "New Menu Item" window with a list of the Menu Item Types.
Once you have selected the menu type click on the 'Next', a new window will open with the name "New Menu Item :: The-type-of-menu-chosen".
Depending on the type of New Menu Item chosen this window may divided into 2 main parts : "New Menu Item" and "Parameters". These vary in function of the type of Menu Item chosen. Some "Details" parameters can also be edited through the list in the Menu Manager as described before under "Headings". Some parameters may show only after clicking the "Create" icon.
Edit Menu Item
Here is a list of available Menu Items:
- Component instance
- Url
- Content Item
- Content Section
- Content Category
- Content Category (blog style)
- Clone
- Separator
- Wrapper
Creating and Adding a New Menu
Login to the administration backend:
Go to System, Modules Manager and select New
- Select menu and then click on next
- Type a new module Title, position, what access group, and most IMPORTANTLY, what item in the Main Menu for the New menu to show on.
- under Module Parameters give a Name to the Menu this module instance will control (Note: this name is very important as you will need it in next stage)
- Save the new module instance and then publish it, selecting where you want it to appear and its order and other options
Go to Menu -> Menus Management
- Select New, type in the name that you used when creating the new module instance (previous stage, step 3)
- Click Create
- Select the Menu and then select the new menu you have created
- Now add menu items as you would for any menu
The menu name that appears on the frontpage will be the Module Title you created in step 3 of the previous stage.
The servicemenu
The servicemenu is an example of menu without associated menu module; instances in this menu are always active but you cannot access them via website menus (these are called website services).

