menu manager and excludeprefix param

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Locked
psy
Power Poster
Power Poster
Posts: 463
Joined: Sat Jan 22, 2005 11:19 am

menu manager and excludeprefix param

Post by psy »

I have created a main menu for a responsive site that requires a click on the top level to display the dropdown sub-pages list.

The top level item is an internal link to the first sub-page, eg:

services (top level)
- overview
- sub-page2
- sub-page3
etc.

In the content of the overview page I have a simple list of all sibling pages BUT I do not want the 'overview' page link to appear.

I have tried:

Code: Select all

{menu childrenof='services' excludeprefix='overview'}
and a few variations such as:

Code: Select all

{menu start_page='services' excludeprefix=$page_alias}
No matter what I do, the 'overview' page link appears except when I display the full menu, eg:

Code: Select all

{menu excludeprefix=$page_alias}
The help text says only to not use 'excludeprefix' in conjunction with 'includeprefix'.

As a workaround, I have used CSS to hide the 'overview' page link but it's not really what I was after and may cause other problems down the track.

Using CMSMS 1.11.4

What am I doing wrong or is this an undocumented feature?
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: menu manager and excludeprefix param

Post by Dr.CSS »

Look in the Menu manager Help for loadprops=, not sure how it's spelled...
psy
Power Poster
Power Poster
Posts: 463
Joined: Sat Jan 22, 2005 11:19 am

Re: menu manager and excludeprefix param

Post by psy »

Thanks Dr CSS, setting loadprops=0 is a good option to reduce the load however has no effect on excluding the 'overview' page.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: menu manager and excludeprefix param

Post by Dr.CSS »

No but loadprops='1' may actually load properties of menu manager like excludeprefix...

(optional) loadprops="0" - Use this parameter when NOT using advanced properties in your menu manager template. This parameter will disable the loading of all content properties for each node (such as extra1, image, thumbnail, etc). This will dramatically decrease the number of queries required to build a menu, and increase memory requirements, but will remove the possibility for much more advanced menus
5k313t0r
New Member
New Member
Posts: 8
Joined: Wed Jun 12, 2013 7:07 pm

Re: menu manager and excludeprefix param

Post by 5k313t0r »

Hey guys, did you ever manage to solve this issue?

I am having the same issue in CMSMS 1.11.7, Menu Manager 1.8.5. I have tried both loadprops=0 and loadprops=1 but with no luck.
Locked

Return to “CMSMS Core”