Implementation in Joomla menu
It is no secret that the big portals are often required to have a separate menu for each section. The problem is that the Joomla All menus exist independently of each other, and this creates problems when displaying the path.
Problem Statement
Main menu:
- Kitchen
- Beauty Salon
- Children
Go to “Kitchen”, a visitor sees inside the menu:
- Salads
- Snacks
- Soups
When you visit the page of one of the recipes you see this way:
Home -> Salads -> Village Salad
But we would like to see the path:
Home -> Kitchen -> Salads -> Village Salad
How is it implemented?
- First you have to create the main menu (mainmenu) The whole structure of the site along with the subcategories to be included in the submenu. This will serve to us as if the site map
- Kitchen
- Salads
- Snacks
- Soups
- Beauty salon
- Cosmetics
- Hairstyles
- Children
- Health
- Education
- Kitchen
- Create a new menu in Manager menu (Menu Manager). We call it mainmenu_real, The name of the module, select yourself. Here we create the main categories as menu items of type Link – URL, based on the actual address of pages that were created in the main menu.
Let’s start with the category of “Kitchen”. Go to the Main Menu (mainmenu) In the editing category “Kitchen.” There we see a line titled URL, copy it to clipboard. Then go to mainmenu_real and creating a new item of type Link – URL. In the Name field is entered the name “Kitchen” and a string Link insert contents of the buffer that is copied us a link from the main menu. By the same principle to establish a point “Beauty Shop” and “Children.” Sub-categories until you touch.
- Create a menu for the first category menu. Call it kitchen, The module name “Kitchen.” We go to the main menu to edit categories “Salads.” Copy out URL. Then go to the newly created menu kitchen and creating a new item of type Link – URL. In the Name field is entered the name “Salad”, and insert the copied line Link Us link from the main menu. Please note: Parent Item retain the value of Top. Similarly, to establish a point “Snacks” and “Sugar.”
Similarly, form the two menus beauty (For “Beauty Salons”) and child (For the Children “).
- The module, which displays the main menu, select mainmenu_real instead of mainmenu. Then tie the publication module “Kitchen” to the main menu items “Kitchen”, “Salads”, “Appetizer”, “Soups.” Similarly, publishes other modules menu. Note that in the appointment pages of the publication of the modules are displayed items of the Main Menu (mainmenu), Since in essence it is a real menu, and we have created add-ons menu – just link to it.
Conclusion
- Developing your site, do not forget that all the new sections are created only in the mainmenu, and additional menus are only links to them.
- Step 2, you can skip it and use the self- mainmenu if you draw it in horizontal mode (sub in this case simply will not be displayed)
