Skip to content
Narrow screen resolution Wide screen resolution Auto adjust screen size Increase font size Decrease font size Default font size

dioscouri.com

Home arrow Forums
Welcome, Guest
Please Login or Register.    Lost Password?
Go to bottom Post Reply Favoured: 0
TOPIC: The JUGA Main Menu
#2176
The JUGA Main Menu 7 Months ago Karma: 0  
I am trying to use the JUGA main menu. My issue is that the code generated by the JUGA menu module is different than the code generated by the regular Joomla menu module.

I am using Joomla 1.5.3 and JUGA 1.51a

If the JUGA menu module is just a modification of the regular menu module to implement the ability to hide menu items, why is the code generated so different? Using the JUGA menu module instead of the Joomla menu module messes up the styling for the menus I am using in my template.

Do I need to redo my styling just to use the JUGA menu module?

Any help would be appreciated.
Thanks.
vanboke (User)
Posts: 3
graphgraph
User Offline Click here to see the profile of this user
Logged Logged  
 
The administrator has disabled public write access.  
#2191
Re:The JUGA Main Menu 7 Months ago Karma: 0  
I am also having the same problem. The menu is not using the correct css items.
The template that I am using has levels defined in the menu(css). This menu uses parent in the css. This causes many problems in the templates.

Because I am not a Joomla programmer, I cannot tell if the is a difference between version 1 of Joomla and Version 2. I believe that this module is still using version 1 coding. I could be very wrong.

I would like to see/hear how to fix this. I have tried to fix the css, but got no where.

Thanks,
whit (User)
Posts: 2
graphgraph
User Offline Click here to see the profile of this user
Logged Logged  
 
The administrator has disabled public write access.  
#2194
Re:The JUGA Main Menu 7 Months ago Karma: 0  
What template are you using?

I found that the YOOtheme template I was using was overriding the output of the mod_mainmenu module to achieve specific functionality for the YOOtheme template.

Once I found that, I was able to modify the template overrides to them work for the mod_mainmenu_juga module. Even if you you are not using a YOOtheme template, that might be your issue.

If you think it is, let me know and I can let you know what I did to fix the issue.

Eric
vanboke (User)
Posts: 3
graphgraph
User Offline Click here to see the profile of this user
Logged Logged  
 
The administrator has disabled public write access.  
#2201
Re:The JUGA Main Menu 7 Months ago Karma: 0  
The template the Beyond.

Thanks,
whit (User)
Posts: 2
graphgraph
User Offline Click here to see the profile of this user
Logged Logged  
 
The administrator has disabled public write access.  
#2207
Re:The JUGA Main Menu 7 Months ago Karma: 0  
My modifications were to the YOOtheme Nu template for Joomla 1.5. All of my line references below are for that template and could differ between different YOOtheme templates. Modifications to other templates though would follow the same general idea though.

To implement some of the specific styling and functions in the menus, YOOtheme uses the Joomla template override feature. Since the template override for the menus targets the use of the mod_mainmenu module, not the mod_mainmenu_juga module, you can't use the JUGA menu module with the "out of the box" YOOtheme templates. Modifying the template to work with the JUGA menu module is fairly straightforward though.

First, find the html directory in your YOOtheme's template directory. Create a copy of the mod_mainmenu folder, and rename that copy to mod_mainmenu_juga. Then rename the file yoomenu.php in the mod_mainmenu_juga folder to yoomenujuga.php.

Now you just need to edit the contents of the default.php file and the yoomenujuga.php file, as I outline below. After I did that, the JUGA menu module worked perfectly with the YOOtheme menu styling, including the accordion menus. All that YOOtheme styling and functionality now works in concert with the JUGA permissions system though.

In the default.php file change the following lines:

Line similar to (around line 15):
Code:

require_once(JModuleHelper::getLayoutPath('mod_mainmenu', 'yoomenu'));
Change to:
Code:

require_once(JModuleHelper::getLayoutPath('mod_mainmenu_juga', 'yoomenujuga'));
Line similar to (around line 21):
Code:

$yoomenu = &YOOMenu::getInstance();
Change to:
Code:

$yoomenu = &YOOMenuJuga::getInstance();
Line similar to (around line 24):
Code:

modMainMenuHelper::render($params, 'YOOMenuXMLCallback');
Change to:
Code:

jugaMainMenuHelper::render($params, 'YOOMenuJugaXMLCallback');
Then in the yoomenujuga.php file, you need to change the following: Line similar to (around line 13):
Code:

function YOOMenuXMLCallback(&$node, $args) {
Change to:
Code:

function YOOMenuJugaXMLCallback(&$node, $args) {
Line similar to (around line 15):
Code:

$yoomenu = &YOOMenu::getInstance();
Change to:
Code:

$yoomenu = &YOOMenuJuga::getInstance();
Line similar to (around line 116):
Code:

class YOOMenu {
Change to:
Code:

class YOOMenuJuga {
Line similar to (around line 128):
Code:

$instance = new YOOMenu();
Change to:
Code:

$instance = new YOOMenuJuga();
vanboke (User)
Posts: 3
graphgraph
User Offline Click here to see the profile of this user
Logged Logged  
 
Last Edit: 2008/06/12 20:34 By vanboke.
 
The administrator has disabled public write access.  
#2479
Re:The JUGA Main Menu 6 Months, 1 Week ago Karma: 0  
Not quite sure about the placement of this question. But it is about the Juga Main Menu, so I'll try here.

I am about to replace my standard Joomla 1.0.15 menu with the JUGA Main Menu, but when testing I see that the JUGA menu behaves different from the Joomla standard menu, with same settings.

The problem that occurs is that when I am browsing down in the menu hierarchy and reaching the bottom (thus clicking a link to a article/component/whatever) the JUGA menu goes back to initial state. The correct behaviour is to stay expanded while displaying the content.

Here is a screenshot of the problem. JUGA menu at the bottom, standard Joomla 1.0.15 main menu at the top. Same settings.
http://www.botnen.org/screendumps/jugamenu.html

Any suggestions?

-K-
kbotnen (User)
Posts: 2
graphgraph
User Offline Click here to see the profile of this user
Logged Logged  
 
The administrator has disabled public write access.  
Go to top Post Reply
Powered by FireBoard
Skilled in PHP and Joomla!? Like working from home? Want to join our team? If freedom and creativity appeal to you, contact us in our Support Center!

Login Menu