0
Welcome Guest! Login
0 items Join Now

Restrict Panacea Menu Levels?

    • Danner's Avatar
    • Danner
    • Newbie
    • Posts: 3
    • Thanks: 0
    • Director / Web developer

    Restrict Panacea Menu Levels?

    Posted 14 years 3 months ago
    • Hi
      I'm using the Panacea template on a client's website and needed to create a menu hierarchy that follows something like this:

      Home > Businesses > Business Type > Business Name > Case Study

      This all works fine and follows the menu but we don't want to show the case study links in the main menu which appears to be "level4".

      I've seen in the module RokNavMenu that I can restrict levels, and I understand this to mean that I could show 3 levels which would give me up to Business Name and no more. This would show as a dropdown like this:

      Businesses
      Business Types -> Business Names

      In the template editor it shows we are using the Fusion Menu on mainmenu but the level control isn't available. Can I tweak this in a config file or css? If css I'd need to turn off the small arrows that appear as well.

      We are using up to date Gantry, RokNavMenuBundle and Panacea.

      Thanks

      Dan
    • David Goode's Avatar
    • David Goode
    • Preeminent Rocketeer
    • Posts: 17058
    • Thanks: 890
    • Web Designer and Host

    Re: Restrict Panacea Menu Levels?

    Posted 14 years 3 months ago
    • Hi Danner,

      My understanding is that the template will adopt the settings made in the menu it is using. So if you are using main menu and you set an item as 'registered' then it will only display to registered members who are logged in.

      This is adjusted in the menu manager > your menu > set the item to registered

      Hope this helps 8)

    • Please search forums before posting. Please make sure your post includes the version of the CMS you are using and a link to the problem. Annotations on screenshots can also be helpful to explain problems/goals. Please use the "secure" tab for confidential information
    • Danner's Avatar
    • Danner
    • Newbie
    • Posts: 3
    • Thanks: 0
    • Director / Web developer

    Re: Restrict Panacea Menu Levels?

    Posted 14 years 3 months ago
    • Hi David

      All the content should be publicly available. My question is really about the config of RokNavMenu and Gantry and Panacea use this.

      Doing some more hunting reveals the config settings in modroknavmenu/lib/librokmenu/RokMenu.php

      I'll post back if this solves it.

      Thanks for replying.

      Dan
    • Danner's Avatar
    • Danner
    • Newbie
    • Posts: 3
    • Thanks: 0
    • Director / Web developer

    Re: Restrict Panacea Menu Levels?

    Posted 14 years 3 months ago
    • OK - there's an option which isn't very elegant which restricts the number of levels visible by changing line 126 in rt_panacea_j15/html/mod_roknavmenu/themes/layout.php
      to be:
      if(intval($item->level <= 2)) which prevents the drawing of additonal child menus.

      Any nicer suggestions would be helpful though.

      Thanks

Time to create page: 0.405 seconds