Hide menu-items in other menu-modules then the Joomla menu-module
You can hide menu-items also in other menu-modules then the Joomla menu module. For this you need to alter the code of your menu-module to make it work with FUA. Here is how.
- Artiseer
- CloudBase
- CustoMenu
- DT menu
- Exmenu
- Gavick templates
- Joomla's own menu module 'mod_mainmenu' and 'mod_menu'
(only in case of conflict with another extension) - JoomlaJunkie
- Joomlart
- Joomlart T3 framework
- Maxi menu CK
- Rockettheme
- Shape5 accordion menu
- Shape5 suckerfish menu
- Superfish menu
- swMenuPro
- Vertical Accordion Menu
- YOOtheme templates
- All other menu-modules
We can not provide downloads of installable template or menu's which have already been fixed. This is because of legal reasons. Thats why we provide these codes so you can alter the menu yourself. We regret we can not make this any easyer for you.
If you can not work this out, feel free to contact us and we will make your menu work with FUA.
Artiseer
Artiseer templates get the menu-data from Joomla mod_mainmenu (joomla 1.5) or mod_menu (joomla 1.6 & 1.7) and then uses a template override to display them in styled horizontal or vertical manner.
To filter menu items in the menu-modules, make sure the menu-item override is enabled in FUA > configuration > 'menu access'.
CloudBase
Cloudbase got a nice build in top menu, which needs this code-fix to hide menu-items as set by FUA.
file:
templates/cloudbase/libs/menu/base.class.php
line: 51
change to:
For the vertical-menu's, you can use the normal Joomla menu module. To filter menu items in the menu-modules, make sure the menu-item override is enabled in FUA > configuration > 'menu access'.
Joomla's own menu module 'mod_mainmenu' and 'mod_menu'
To filter menu items in the menu-modules, make sure the menu-item override is enabled in FUA > configuration > 'menu access'.
The fix underneath is only needed if you enabled the mod_mainmenu/mod_menu override in the FUA configuration AND get an error at the frontend of the site. This happens when another menu-module conflicts with FUA. In that case you can use this fix to filter the menu-items without conflicting with the conflicting menu-module.
Of course we do not want you to hack the Joomla core, so you can do this with a module-override for 'mod_mainmenu' (joomla 1.5) / mod_menu (joomla 1.6 & 1.7 &2.5) in your template's folder.
Check if your template is already using a module override for 'mod_mainmenu' (joomla 1.5) / mod_menu (joomla 1.6 & 1.7 & 2.5).
Check if this folder exists:
/templates/template_name/html/mod_mainmenu (joomla 1.5)
/templates/template_name/html/mod_menu (joomla 1.6 & 1.7 & 2.5)
if the folder is not there, read on at 'create joomla menu override'.
if the folder is already there, read on at 'altering existing mod_mainmenu override (Joomla 1.5)' or 'altering existing mod_mainmenu override (Joomla 1.6 & 1.7 & 2.5)'
-
create Joomla menu override
- Download the module-override
- Unzip the zip file
- Read the installation instructions inside. (create the folder and upload the 2 files).
-
altering an existing mod_mainmenu override (Joomla 1.5)
The Frontend-User-Access menu module needs to be installed for this to work. It does not need to be enabled.
If your template has already got a module-override for the Joomla menu module, you might be able to alter it.
file: /templates/template_name/html/mod_mainmenu/default.php
find this line at the top of the file:
change to:
AND
find a line like:
change to:
If the file does not contain any code like this, as a last resort you can alter 'mod_mainmenu' as described at the bottom of this page.
-
altering an existing mod_menu override (Joomla 1.6 & 1.7)
If your template has already got a module-override for the Joomla menu module, you might be able to alter it.
file: /templates/template_name/html/mod_menu/default.php
find this line at the top of the file:
change to:
JoomlaJunkie
JoomlaJunkie uses different types of menu's.
- JoomlaJunkie suckerfish menu
Check if your site got this file:
/templates/template_name/jj_suckerfish.php
If so, your template is using the JoomlaJunkie suckerfish menu. - Joomla's own mod_mainmenu or mod_menu with some template-overrides
check if your site got this file:
/templates/template_name/html/mod_mainmenu/helper.php (joomla 1.5)
or
/templates/template_name/html/mod_menu/helper.php (joomla 1.6 & 1.7)
If so, your template is using Joomla's menu module.
This example is from Ario, but might also work on other templates by them.
file: /templates/template_name/jj_suckerfish.php
find this code:
replace by:
Joomla's menu module in JoomlaJunkie template
The template loads the menu-data from Joomla mod_mainmenu (joomla 1.5) or mod_menu (joomla 1.6 & 1.7) and then uses a template override to display them in styled horizontal or vertical manner.
To filter menu items in the menu-modules, make sure the menu-item override is enabled in FUA > configuration > 'menu access'.
Joomlart
Some Joomlart templates get the menu-data from Joomla's menu module, other templates render the menu-items themselves. The easyest way to find out how the template is rendering its menu-items is to enable the menu-override in the FUA configuration > 'menu access'. Then check if the menu-item(s) are hidden in the menu. If not, the template is rendering the menu-items outside the Joomla core. In that case, apply one of the fixes underneath. If your template is not here, feel free to contact us, and will send you the fix.
This example is from the ja_sulfur template.
file: /templates/ja_sulfur/ja_menus/Base.class.php
line: 58
change to:
This example is from the ja_kyanite_ii template.
file: /templates/template_name/libs/menu/base.class.php
line: 51
change to:
This example is from the ja_purity_ii template.
file: /templates/template_name/libs/menu/base.class.php
line: 52
change to:
Joomlart T3 framework
Joomlart's T3 framework is a template-framework which is also used by other template makers (Theme Survivor, Joomagic, Themecraft, Joomla Mart, ThemeSoul and many more).
To make FUA work with the T3 framework:
file: plugins/system/jat3/jat3/core/menu/base.class.php
line: 100
(Joomla 1.5: plugins/system/jat3/core/menu/base.class.php line 55)
change to:
Rockettheme RoknavMenu
Rockettheme comes with its own menu-module. The menu-module does often not have to be published in the module manager, the template simply uses the menu-modules code in the background. So althou the menu-module is not published, it is used.
To make the menu-module work with FUA, alter the code as such:
In mod_roknavmenu version 2.2 (maybe earlyer then 2.2, but later then 1.8, 2.2 is confirmed)you need to alter this file:
modules/mod_roknavmenu/lib/providers/RokMenuProviderJoomla.php
find this code (around line 32-46):
replace with:
In older versions of the Roknav menu, use this fix:
/modules/mod_roknavmenu/helper.php
find this code:
change this to:
Shape5 accordion menu
Alter the modules helper file to hide menu-items as described at the bottom of this page.
file: /modules/mod_s5_accordion_menu/helper.php
Superfish Menu
The superfish module get the menu-data from Joomla mod_mainmenu (joomla 1.5) or mod_menu (joomla 1.6 & 1.7) and then uses a template override to display them in a stylish manner.
To filter menu items in the menu-modules, make sure the menu-item override is enabled in FUA > configuration > 'menu access'.
Vertical Accordion Menu
The Vertical Accordion Menu by offlajn.com gets the menu-data from Joomla mod_mainmenu (joomla 1.5) or mod_menu (joomla 1.6 & 1.7) and then uses a template override to display the menu in a stylish accordion manner.
To filter menu items in the menu-modules, make sure the menu-item override is enabled in FUA > configuration > 'menu access'.
YOOtheme templates
YOOtheme templates get the menu-data from Joomla mod_mainmenu (joomla 1.5) or mod_menu (joomla 1.6 & 1.7) and then uses a template override to display the menu in a stylish manner.
To filter menu items in the menu-modules, make sure the menu-item override is enabled in FUA > configuration > 'menu access'.