Questions tagged [menu]

In Joomla!, a Menu is a set of menu items used for website navigation. Each menu item defines an URL to a page on your site, and settings that control the contents(articles, category(ies) lists, tagged items, etc.) and style(module(s), layout) of that page.

Filter by
Sorted by
Tagged with
7
votes
1answer
15k views

How to get the alias or title of the active menu item?

In my template I want to give an extra class to the body of the document that will take the names of the alias of the menu item, so I can create individual styling among the pages. But how can I get ...
3
votes
2answers
373 views

Joomla turns all menu items to sub-sub-menu items when adding a new one

When I add a menu item, Joomla shows all menu items on all menus as if they are sub-sub-menu items, ie with a |—|— before the name in the menu manager. This breaks the menus, or adds "root" to the ...
1
vote
1answer
317 views

How to add submenus to a menu?

My main menu is: Home | Software | Contact I have two K2 items in 'Software' category: Soft1 and Soft2. I want to make the Soft1 and Soft2 appear as submenus in the 'Software' menu. The Software ...
11
votes
2answers
4k views

Module as menu item

I need to insert the search module as a menu item (default menu module). I need this output : <ul> <li>menu item</li> <li>menu item</li> <li>SEARCH ...
10
votes
5answers
6k views

Generate menu structure from categories

I have a Joomla site with a fairly complex system of categories and sub-categories. My main menu uses the same structure, in such a way that each menu item lists articles within the corresponding ...
4
votes
1answer
852 views

How can I make a modal menu item?

I would like to make a Menu item for a contact form. I would like to either make a modal calling whatever contains the form (component/module/article) or opening it as a submenu, like in yootheme ...
3
votes
2answers
341 views

Responsive Menu with different background images

I have a website with a special background-images on the article=home and a different background-image on all other articles. I use the following code in the template index.php: <?php $active = ...
2
votes
2answers
1k views

How to remove menu parent from url?

The Joomla menu system includes the menu's parent name in the URL structure for sub-menu items as follows: https://www.mysite.com/parent/page I'd like to remove the parent directory from the url as ...
6
votes
2answers
891 views

Override a component view for a specific menu item

How can I override the component view for a specific menu item? For a global overwrite I can use template/html/com_xxx/. But how can I do it only for a specific menu item? Example : Joomla! has a ...
5
votes
1answer
5k views

Menu item without link

I often create a menu item with no link (like a not-clickable menu item with a dropdown menu), but in the "System Links" tab, there are several options that look similar. What's the difference ...
0
votes
1answer
563 views

Programmatically update Menu Item in Component

Im creating a component, where among other things, can create and update menus, and i have successfully used this answer to create a new menu item. Programmatically Add Menu Item in Component $...