• twitter image
  • facebook image
  • youtube image
  • linkedin image
Language: CMS Made Simple Czech CMS Made Simple France CMS Made Simple Spain CMS Made Simple Hungary CMS Made Simple Russia CMS Made Simple Netherlands

All times are UTC




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: MenuManager : childrenof include - excludeprefix
PostPosted: Thu Apr 07, 2011 11:46 am 
Offline
Forum Members
Forum Members
User avatar

Joined: Sun Feb 10, 2008 7:36 pm
Posts: 173
Hello,

I'm building a 1.9.4.1 CMSMS with MleCMS module and a 5 menu navigation. Mod_rewrite is on with hierarchy. Menu calls in template look like this :

Code:
{menu loadprops="0" template="simple_nav" collapse="1" excludeprefix="menu2,menu3,menu4,menu5" childrenof="$lang_parent" lang="$lang_locale"}
...
{menu loadprops="0" template="simple_nav" collapse="1" includeprefix="menu2" childrenof="$lang_parent" lang="$lang_locale"}
...
{menu loadprops="0" template="simple_nav" collapse="1" includeprefix="menu3" childrenof="$lang_parent" lang="$lang_locale"}
...
{menu loadprops="0" template="simple_nav" collapse="1" includeprefix="menu4" childrenof="$lang_parent" lang="$lang_locale"}
...
{menu loadprops="0" template="simple_nav" collapse="1" includeprefix="menu5" childrenof="$lang_parent" lang="$lang_locale"}


The point is that MenuManager lists every site'pages in each menu, wether pages have menu1to5 in prefix or not... Without loadrprops="0" it is the same, without childrenof too. Then I must have something wrong because of... what ? Any idea ?


Top
 Profile  
 
 Post subject: Re: MenuManager : childrenof include - excludeprefix
PostPosted: Fri Apr 08, 2011 10:27 am 
Offline
Forum Members
Forum Members
User avatar

Joined: Sun Feb 10, 2008 7:36 pm
Posts: 173
I tried to get it with different combinations of MenuManager options, last one should have done it :

Code:
        {menu template="menu2"  items="international-fr-menu2" childrenof="$lang_parent" lang="$lang_locale}
        {menu template="menu3" items="professionnels-fr-menu3" childrenof="$lang_parent" lang="$lang_locale}


...but don't work either. The only I am sure about is that MleCMS module is properly configured,
Code:
{MleCMS action="init"}{MleCMS action="langs"}...
, Root alias and Locale are ok...

So what ?

This works:
Code:
        {menu template="menu2"  items="international-fr-menu2"}
        {menu template="menu3" items="professionnels-fr-menu3"}


The result is that "Français, Deutsch, English" are listed in the menu, plus the language flags and we don't want this, want we ? No. Then MenuManager module can't handle
Code:
childrenof="$lang_parent" lang="$lang_locale
or vice de versaille with MleCMS module.
???


Top
 Profile  
 
 Post subject: Re: MenuManager : childrenof include - excludeprefix
PostPosted: Wed May 23, 2012 8:00 pm 
Offline
Forum Members
Forum Members

Joined: Mon Jul 28, 2008 7:45 am
Posts: 19
Location: Netherlands
I've got the same problem with the latest 1.10.3 install. Showing all the menu-items while i only want to show some with items="page-1, page-2"...
Did you found a solution for this problem?!


Top
 Profile  
 
 Post subject: Re: MenuManager : childrenof include - excludeprefix
PostPosted: Thu May 24, 2012 4:47 am 
Offline
Forum Members
Forum Members
User avatar

Joined: Sun Feb 10, 2008 7:36 pm
Posts: 173
Yes, the solution was to exclude any entries I didn't wanted with excludeprefix='menu2,menu3,menu4,menu5'
But I didn't find out why it doesn't work with includeprefix='menu1' if just this menu is needed.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Arvixe - A CMSMS Partner