-
AuthorPosts
-
July 14, 2008 at 4:48 pm #130844
What I’d like to do is change the JA Menu start level to like 1 or 2, so instead of displaying the 1st level of menu items as the top level, it shows the 2nd level as the top level, just like how the built in Joomla mainmenu works.
Can this be done?
For example this is the menu:
Home
Portfolio
– Web
– Print
– Graphic
About
ContactSo instead of the menu starting with the 1st level, I need the JA Menu to start with Web, Print & Graphic (the 2nd level) … Joomla’s mainmenu mod works like this…
July 15, 2008 at 4:37 pm #259954No one has any ideas?
mj1256 Friendmj1256
- Join date:
- June 2007
- Posts:
- 1473
- Downloads:
- 10
- Uploads:
- 35
- Thanks:
- 84
- Thanked:
- 225 times in 118 posts
July 15, 2008 at 9:01 pm #259991make a new menu with Web, Print & Graphic at the first level and assign the others at the second level under the 1st level item you want. or you don’t even have to do a new menu,, just reassign what you have.,
are you in 1.5.3 or 1.0.15
July 15, 2008 at 9:12 pm #259992That would be the simple way, but I can’t do it like that. If I separate the menu’s then there is no way for Joomla to know I’m in one of the top level sections & I need this too happen so there has to be only 1 menu. When I’m in Print, Web, etc.. (2nd level) I need to have the top level be active highlighting I’m in that section, can’t do that with your proposed method.
I’m in J1.5
mj1256 Friendmj1256
- Join date:
- June 2007
- Posts:
- 1473
- Downloads:
- 10
- Uploads:
- 35
- Thanks:
- 84
- Thanked:
- 225 times in 118 posts
July 15, 2008 at 10:09 pm #260002no, you misunderstood me, you should be able to use one menu.
are you talking about doing this
– Home
– Portfolio
Web
Print
Graphic
– About
– Contactwhat would the – level be under, their has to be a top level for these items
July 15, 2008 at 10:44 pm #260008Ok,
mainmenu
1st/Top Level is: Home Portfolio About Contact
2nd Level under Portfolio is: Web Print Graphic
So when u click on Portfolio, u should get Web Print Graphic…Basically, for the 1st level I’m using a regular Joomla mod_mainmenu pulling from the mainmenu, setup as a flat list, that just shows that top level.
Then, I’m using the JA MooMenu (which is in the template folder and not a module in the admin) to ALSO pull from mainmenu. The problem is, that the JA MooMenu always pulls ALL the menu items… what I’m looking for here is someway to modify the JA MooMenu code, so that instead of pulling ALL the menu items, just start with the 2nd level of Portfolio, or any other top level item. I know the regular Joomla mod_mainmenu can do this by entering a startlevel an endlevel. I’m thinking that the JA MooMenu can do this too, but it’s just not setup like that from default.
Does that make more sense?
July 17, 2008 at 10:33 am #260487<em>@reeboot 66815 wrote:</em><blockquote>Ok,
mainmenu
1st/Top Level is: Home Portfolio About Contact
2nd Level under Portfolio is: Web Print Graphic
So when u click on Portfolio, u should get Web Print Graphic…</blockquote>You mean something like the picture in this thread?
http://www.joomlart.com/forums/topic/help-combination-of-split-menu-and-moo-menu/
July 17, 2008 at 12:57 pm #260526Yup.
Level 1 is in a separate menu (using mod_mainmenu)
Level 2 is in a separate menu using JA MooMenu or JA CssMenuThe problem is, JA Moo/CSS menu always pulls from the top level down and I need it to start pulling only from the 2nd level.
July 17, 2008 at 1:36 pm #260531<em>@reeboot 67436 wrote:</em><blockquote>Yup.
Level 1 is in a separate menu (using mod_mainmenu)
Level 2 is in a separate menu using JA MooMenu or JA CssMenuThe problem is, JA Moo/CSS menu always pulls from the top level down and I need it to start pulling only from the 2nd level.</blockquote>
I have the same problem.
Now I’m fighting with codes.
If I find out something I’ll tell you.mj1256 Friendmj1256
- Join date:
- June 2007
- Posts:
- 1473
- Downloads:
- 10
- Uploads:
- 35
- Thanks:
- 84
- Thanked:
- 225 times in 118 posts
July 17, 2008 at 1:46 pm #260533now i see what you want.
July 17, 2008 at 1:59 pm #260535If you open the Base.Class.Php in the ja_menus directory and go to line 334 I believe, there be a line like this:
$this->genMenuItems (0, 0);If I put an itemId in for one of my top level sections so it looks like this:
$this->genMenuItems (54, 0);It will show starting with the 2nd level!!! So if somehow we could figure out how to get the topmost itemId based on what page you are on via recursive function or something (i’m not a php coder) and plug it in that spot then it would do what we are looking for!
-
AuthorPosts
This topic contains 11 replies, has 3 voices, and was last updated by reeboot 16 years, 5 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum