Menu Builder

Description

Menu Builder is a plug-in that will let you create one or more menus (navigations) for your website. You can compose the navigation out of any existing element of the website, such as page, a category, an article, tag, or combination of VTE and xHTML tags resulting in intuitive menu elements like search or tag cloud. Each menu can be attached to a template separately, resulting in different (or modified) menus for different sections of the website, such as web version and mobile version. Also, you can have several menus on the same template (page), with main navigation menu showing top-level navigation and auxiliary navigation showing only current portion of the website.

How to Install

You need to access to the Plug-ins section. Click on the Plug-ins link which is located in the Main menu at the top of your administration panel.

Admin menu

A list of all plug-ins currently registered to the system is displayed on the right hand side of the screen on Downloaded plug-ins tab.

To install Menu Builder you need to click on the install icon on the right side of the plug-in name.

Menu Builder install

This will take you to the page with the installation link: Click here to Install the plug-in

Menu Builder install step 1

After you run the installation, you will be informed that the plug-in was successfully installed.

You may easily go back to the Plug-ins page, by following the link: Click here to go to Plug-in

Menu Builder install step 2

How to Uninstall

To uninstall Menu Builder you need to click on the uninstall icon on the right side of the plug-in name

Menu Builder uninstall

This will take you to the page with the link for uninstall: Click here to Uninstall the plug-in

Menu Builder uninstall step 1

You will be informed that the plug-in was successfully uninstalled and you may return to the Plug-ins page by clicking the link: Click here to return to Plug-in home page

Menu Builder uninstall step 2

Access

The path to the Menu Builder plug-in:

Click on the Plug-ins link (which is located in Main menu at the top of your administrator panel).

Choose Menu Builder from the list of all installed plug-ins (on the left side of the screen).

User level

This plug-in can be accessed only by users belonging to groups that are allowed to manage Menu Builder plug-in.

Actions

Menus tab that is located on the left hand side of the screen holds +Add new menu link which takes you to new menu creation form and a list of all previously created menus.

Menus tab

If you click on any item listed here, the menu settings will open on the right and you'll be able to see and change its preferences, nodes, title and template or just copy its VTE integration code. You can also edit a menu if you choose edit icon Edit menu next to its name on the list.

After you have applied changes to a menu click on Save button to apply and keep the changes.

To delete a menu, just click on delete icon Delete menu next to its title.

Add new menu

Click on +Add new menu link on the Menus tab and use editing area to set-up your new navigation.

First, add its title and choose one of predefined templates for the menu from the drop-down list.

Add new menu

You may create your own menu templates and upload them to VIVVO_TEMPLATE_DIR/box/menu_builder folder.

Menus consist of single items - nodes. On each menu you create you can have unlimited number of nodes of the same type or a mixture of categories/subcategories, pages, articles and VTE elements in a chosen order.

After you set-up all nodes and menu preferences don't forget to click on Add button to save this menu.

Add new node

Click on +Add new node to add new item to the menu you are creating. You can add infinite number of nodes to each menu.

Now double click on the node to add/edit its preferences.

Set node preferences

First choose the type - each node can be link, category, VTE, subcategories or all categories.

Add new node - choose type

Link

Add new node - link

Link menu item takes a visitor to a link specified in the Href field. It can be internal (page, category, article or a tag that is a part of your Vivvo website) or external (any external link). In case of using an external link just enter the full URL in the Href field, for example http://www.example.com. For internal links you may rely on Search element option - start typing a name of a page/category/article or a tag you want to link to and wait for the matching results to be found then just click on a chosen result and the Href field will be automatically populated.

Add new node - search element

Click Apply to save changes for the node.

Example menu with links:

Links menu

Category

Choosing Category as a type offers a list of existing categories and subcategories so you can choose one from the Category drop-down.

Add new node - category

After you've chosen a category from the drop-down, Node title and Href fields will be automatically populated with category title and category page URL. You may edit those preferences and add different title/URL.

Add new node - category

Mark Include subcategories if you want to show subcategories of this subcategory on the menu as well.

Add new node - category

When you are done click Apply to save changes for the node.

Example menu with categories:

Category menu

VTE

Enrich menu by adding Vivvo elements like search box, links to author pages or article tags. These are only predefined elements but you can create your own templates and add, for example, newsletter subscription box or most popular articles to your menu. Just upload your custom templates to VIVVO_TEMPLATE_DIR/box/menu_builder/widgets folder.

For this type of node you just need to enter a title and choose a template from the drop-down menu. When you are done click Apply to save changes for the node.

Example VTE menu:

VTE menu

All Categories

Use one node to list all categories that exist in Vivvo system - just like default Vivvo menu. You can choose to display only top level categories or include their subcategories as well.

Add new node - All categories

Click Apply to save changes for the node.

Example menu with all categories:

All Categories menu

Subcategories

Subcategories menu lists subcategories of an active category and optionally their subcategories. You'll include this navigation in your category template.

Example subcategories menu:

Subcategories menu

Edit/delete node

To edit an item just double click on its name and change settings on the right hand side of the screen then click Apply button.

When you double click an item's name you'll be able to delete it - just click on delete icon Delete node next to its name.

When you delete a parent node all the items it holds will be removed as well.

Drag and drop nodes to change their order on the menu.

Reorder nodes

Use generated code in templates

Menu Builder generates an integration code for each navigation you create. You may use this code and copy/paste it template file where you want the menu to appear on your website.

Integration code

Templates are located in {ROOT}/templates/ folder, followed by the currently active theme (default is /xhtml). Commonly used templates for menus are so-called “frame” or main carrier templates holding entire pages in Vivvo site. Three most important are:

  • homepage - homepage/default.tpl
  • individual article page - article/default.tpl
  • category pages - category/default.tpl
  • to put menu in all pages, header or footer - box/header.tpl, box/footer.tpl

To get additional help on template files and explanation of template system, you may refer to Template manual.

You can learn how to change template files referring to our User manual::Layout section.

 
user_manual/plugin_manual/menu_builder.txt · Last modified: 2009/06/09 11:28 by ksenija
 
Except where otherwise noted, content on this wiki is licensed under the following license:CC Attribution-Noncommercial-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki