Hot answers tagged

4

You can use the first parameter of addEntry() for that, for example: public static function addSubmenu($submenu) { JSubMenuHelper::addEntry( '<i class="icon-home"></i>' . JText::_('COM_SHOUTBOX_SUBMENU_SHOUTS'), 'index.php?option=com_shoutbox', $submenu == 'shouts' ); } This would add the home icon to your menu ...


4

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 the next update: https://github.com/joomla/joomla-cms/pull/9610


2

I would suggest you to verify Assets Table, because many times that have fixed mysterous problems for me in the past. But unfortunately, there is no free tool for that. The best assests and permission manager is commercial extension ACL Manager from Sander Potjer, and without it I can't imagine my daily admin routine. It discovers & fixes issues ...


2

Beez template doesnt support dropdown menu. You can use different templates also if the Beez template is important then you can install menu extension to work with the same template. Some free extensions Maxi Menu CK JMZ Dropdown Menu


1

I guess submenu is a module - Modules are displayed in specific pages, by assigning them on menu items. It's possible that you don't have a menu-item for the Product Details Page - if you do, then you need to assign the module to this menu-item as well. It might also worth trying to use the "exclude assignment" option for your module: Instead of using "...


1

I did manage to solve it in the end, although I still have no idea why the inline code - which was added by Firefox, not me - was added. I compared the html/css class code for the menu with another menu that wasn't doing the same thing. This code was faulty: <nav id="topmenu"> <?php if ($this->countModules('mainmenu')) : ?> <...


1

Usually i get around these kind of problems with a small custom PHP function. You can include it in you template index.php function thereAreModules ($position) { $modules = JModuleHelper::getModules($position); $ret = false; if (count($modules) > 0) { $ret = true; } return $ret; } Usage: if (thereAreModules('module-position-name-here')) {...


1

Your module is always published. It counts even if it has no content. A feature to exclude empty modules when counting modules in template may get included in 4.0.


1

With Gantry 4 templates, there are two places where you can assign a menu to a module position. One is at Extensions -> Modules where you should be able to find a menu in the content-bottom-a module position. The other is at Extensions -> Template -> Template Name -> Menu. If neither of these places reveals how the menu is being displayed, then a short ...


1

Regarding the first point - if you turn off javascript then it jumps to the right place, but the page is shorter and none of the content visible. This suggests that you are loading some content dynamically after the page has loaded. This additional content will be pushing the layout of the page around and so your scroll position will change. Personally,...


1

There are few ways to do it without any plugins: Create a detached menu (menu without any module) and add there the menu items you want to have a short URL. Use Redirects component to create a redirection from for example /iphone to /products/smartphones/apple/iphone. That way you don't have to change menu structure Create a menu item in one of the menus as ...


1

The simplest option may be to create a new menu which doesn't have an associated module (call it something like 'hidden'). This menu will not appear on the front of the site, but its items can still be loaded by going directly to the URLs you have set up within it. Place any pages you want to appear at a root level in this menu, and then create a menu item ...


1

Use external URL menu item type for this. You don't have to provide the full URL. Just insert #<your-link-id> into the link field of your menu item.


1

You're almost there... by adding a left-menu class to your module as you've done you can target any element inside the module with this selector, e.g.: .left-menu p { /* styles apply to paragraphs inside your module only */ } The reason why your line-height style isn't working is because you have to apply it to your list items, not the entire div. This ...


1

This sounds like it could be a known conflict between jQuery and Mootools. Solution, disable mootools. I'd suggest @phproberto's excellent Mootable plugin as it will allow you to cleanly and completely remove Mootools with a high degree of control: https://github.com/phproberto/plg_sys_mootable


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