Hide subpages in only ONE menu

tiggerific

Avatar: tiggerific

2011-08-09 16:10

Hi,

I have QuickCart 3.7 Extended. My site displays a drop-down main menu so I have the "show expanded menus" set to "yes".

But what I really need to do is limit the display of the subcategories (in Menu3) to only show the top level OR current level subpages.

In other words, I want the categories menu to act as if I haven't enabled the expanded menus option - so that it only shows its subpages when on a parent page.

I've tried so many different things, but still unable to make it work. Help would be really appreciated.

» Quick.Cart v3.x

sitesnstuff.net

Makaron

Avatar: Makaron

2011-08-09 16:27

Edit file core/pages.php function generateMenuData() and try to change this statement:

if( $iDepthLimit $iDepth && ( $iPageCurrent == $iPage || isset( $this->aPageParents[$iPage] ) || DISPLAY_EXPANDED_MENU === true ) && $this->aPages[$iPage]['iSubpagesShow'] != ){


to:

if( $iDepthLimit $iDepth && ( $iPageCurrent == $iPage || isset( $this->aPageParents[$iPage] ) || DISPLAY_EXPANDED_MENU === true || $iType == ID_DROPDOWN_MENU ) && $this->aPages[$iPage]['iSubpagesShow'] != ){


and replace ID_DROPDOWN_MENU by ID of Your dropdown menu (not difficult to guess ;))
Turn off option show expanded menus option in Settings.

I helped? Like it: www.facebook.com/makwebpl

tiggerific

Avatar: tiggerific

2011-08-11 10:11

That's fantastic!

I was trying to do it in reverse - i.e. try to HIDE the expanded menu for Menu ID 3 but couldn't get it working.

Thank you :)

sitesnstuff.net

Back to top
about us | contact