Hot answers tagged

12 votes
Accepted

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

To get the data of the active (current) menu item, use the following code: $app = JFactory::getApplication(); // Access the Application Object $menu = $app->getMenu(); // Load the ...
  • 19.5k
9 votes
Accepted

Menu item without link

The main difference is how the HTML is rendered. Thus it depends on the template what the menu items look like. This is how the default Protostar template will display the different options: External ...
  • 13.3k
7 votes
Accepted

How to make a menu item scroll to heading on same page?

When creating anchors, you need to assign the name as an ID of the element, like so: Link: <a href="#contact">Contact</a> Anchor: <div id="contact"> // Your form here </div&...
  • 26.5k
7 votes
Accepted

How to add separate admin menu for custom component

We can develop an admin side component with the below code snippet. mod_custommenu.php $input = JFactory::getApplication()->input; $menu = new JAdminCSSMenu; $enabled = $input->getBool('...
  • 2,651
6 votes

Creating a different kind of frontpage

This can be done with most templates. There's usually setting that lets you turn OFF the component function, hiding the main body. At that point it's just a page filled with modules. But even if you ...
  • 2,366
6 votes

How to put divider images between menu items

You can achieve this using pure CSS using the greater than symbol > (immediate children selector) and the :after pseudo-element. Here's a quick example based on the default Joomla 3 and the ...
  • 13.3k
6 votes
Accepted

Change "Show page heading" param for every menu item

I believe you'll need to use SQL statements such as below. But be CAREFUL - BACKUP THE TABLE FIRST to be sure that you can restore it if there are more considerations than you've realized at this ...
  • 7,685
5 votes
Accepted

Generate menu structure from categories

There used to be a Joomla 1.5 era extension called Automatic Menu but I can't find it on the JED that did exactly this, so, I'm guessing it never made it off 1.5. However, in recent times we used a ...
  • 1,749
5 votes

Joomla menu module - display levels in separate panels

I won't give you code on how to create a such menu, but I will give you an idea that will allow you to create a similar end result. You can create a "Split-Menu", by using 2 menu modules. At the ...
  • 19.5k
5 votes

Default menu item undo

You can't "unset" the default page. As you mention, Joomla requires at least one menu item to be set as default. The solution is to set any other menu item as the default page by clicking ...
  • 13.3k
4 votes
Accepted

How can I prevent a particular view in my Component from being available as a menu item?

This should be driven by xml files in the tmpl folder of the view. So for the default.php layout, you typically add a default.xml file to the same folder to make that layout available as a menu item. ...
4 votes
Accepted

How to set up a menu icon in Joomla 3?

Answered my own question shortly after I wrote it. It was to do with the template. For some reason, the default ISIS template disables the icon view. If you are experiencing this problem, go to ...
4 votes

How to create a collapsible menu with Joomla! 3.3 and Bootstrap 3?

I struggled with this longer than I care to admit. My answer is based on Bootstrap 3.2.0 and it creates a collapsible dropdown menu for Joomla 3.3 In my template I included bootstrap.css and a ...
  • 2,330
4 votes
Accepted

Module as menu item

Here's one alternative to load the search module in your menu. It requires a couple of simple steps: 1. Override your mod_menu module Create an override in your templates folder \templates\...
  • 13.3k
4 votes
Accepted

Template's main menu not responsive -how to fix it?

The menu is there but due to the colour of the dropdown trigger, it's very hard to see as it's blending in with the background. The image below shows you: You can change the colour on line 80 of ...
  • 26.5k
4 votes
Accepted

New menu changes article URL

No, this is how Joomla's sef system works. If you were to make a menu item to an article, that too would lose its item id from the url. I think your only option would either be to override the router ...
  • 2,366
4 votes
Accepted

Joomla using bootstrap (mod_bootstrapnav) menu issue

Bootstrap and this module do not support three levels. You can check it in Bootstrap v2.3.2, navbar dropdowns definition: http://getbootstrap.com/2.3.2/javascript.html#dropdowns
  • 7,415
4 votes

How to add separate admin menu for custom component

You will need to override the admin template to do this. There is a pretty detailed article here that describes how to do this. It was written for Joomla 2.5 but should also work for Joomla 3.0 http:...
4 votes

How can I hide a menu item, without breaking its route?

Simply create Hidden Menu (call it whatever you want) which is not to be used in any menu module. It will hold menu items not visible on front end, and put your menu item in it.
  • 3,017
4 votes

Add a parameter to "external url" menu item

The External URL menu item also has an XML file (like all backend forms in Joomla). You can find it inside: administrator/components/com_menus/models/forms/item_url.xml So inside this file (or the ...
  • 19.5k
4 votes

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

The issue was down to a problem with a PDO database file MySQL driver, which is why it wasn't replicated on my other 3.5.0 site, which was using MySql. There is a fix here, or it should be patched in ...
  • 3,072
4 votes

I want to make the menu sticky

Based on the template demo and , I put together a quick solution using jQuery and CSS, but if your template has been customized, this might not work as expected: CSS .fixedMenu { position: fixed;...
  • 13.3k
3 votes

Generate menu structure from categories

The Automatic Menu Extension that I used from J1.5 was: ArtCats for Joomla!: http://www.orware.com/products/artcats-module/all-pages Its been updated for J3 - and if you want it in your menu then ...
  • 505
3 votes

Generate menu structure from categories

Having looked around a little, I found the following plugin: http://extensions.joomla.org/extensions/structure-a-navigation/menu-systems/menu-editors/20057 Upload, install and enable Once you have ...
  • 26.5k
3 votes

Copying Joomla Menu Items and keeping Module assignements

I needed exactly the same thing so I made a plugin that makes Save as copy work that way. You can find it here: https://github.com/alexxandar/copy-module-assignments
3 votes

How to make a menu item scroll to heading on same page?

You can do this using jQuery (as Lodder suggested). Here's an alternative solution (from this answer at StackOverflow). Place this code in your index.php file: <script> var $root = jQuery('html,...
  • 13.3k
3 votes
Accepted

How to change main menu appearance?

Ok, it seems that you have accidentally moved all the menu items under the "home" item as their parent. You can have a rough overview about the menu hierarchy in that menus dashboard. If you need to ...
3 votes

How to link entire article content as menu

From what I understand of your question, you want to call content into your menu output. This is absolutely possible, but it requires a bit of skill and understanding of Joomla. Instead of making ...
  • 1,328
3 votes

How to link entire article content as menu

Your question is very vague, and parts of it doesn't make sense (add hyperlinked article to menu item and menu module, for instance). You're mixing the terms module, articles, urlmenu and others. But ...
  • 13.3k
3 votes

How to create a collapsible menu with Joomla! 3.3 and Bootstrap 3?

If it is difficult for you to debug the code then give these menu modules a try:- http://www.joomlack.fr/en/joomla-extensions/accordeonmenu-ck http://extensions.joomla.org/extensions/structure-a-...
  • 358

Only top scored, non community-wiki answers of a minimum length are eligible