test
Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • reeboot Friend
    #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
    Contact

    So 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…

    reeboot Friend
    #259954

    No one has any ideas?

    mj1256 Friend
    #259991

    make 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

    reeboot Friend
    #259992

    That 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 Friend
    #260002

    no, you misunderstood me, you should be able to use one menu.

    are you talking about doing this

    – Home
    – Portfolio
    Web
    Print
    Graphic
    – About
    – Contact

    what would the – level be under, their has to be a top level for these items

    reeboot Friend
    #260008

    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…

    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?

    Smith Friend
    #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/

    reeboot Friend
    #260526

    Yup.
    Level 1 is in a separate menu (using mod_mainmenu)
    Level 2 is in a separate menu using JA MooMenu or JA CssMenu

    The 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.

    Smith Friend
    #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 CssMenu

    The 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 Friend
    #260533

    now i see what you want.

    reeboot Friend
    #260535

    If 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!

Viewing 11 posts - 1 through 11 (of 11 total)

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