How to show not all nodes in menu keeping "Show in menu" ON?
-
Marciux
How to show not all nodes in menu keeping "Show in menu" ON?
Is it possible to make that in main menu only some nodes with their children nodes would appear, with the setting "Show in menu" turned ON in ALL nodes?
My hierarchy is something like this:
1. First parent node
1.1. First children node of first parent node
1.2. First children node of first parent node
2. Second parent node
2.1. First children node of second parent node
2.2. First children node of second parent node
3. Third parent node
4. Fourth parent node
4.1. First children node of fourth parent node
4.2. First children node of fourth parent node
5. Fifth parent node
In main menu I would like to show only First, Second and Third parent node with their children, but NOT to show Fourth and Fifth parent node with their children. But the setting "Show in menu" is turned ON for all nodes (and I need to keep it ON).
Note: The feature to use the items="XXX,YYY,ZZZ" is not good for me, because there are a lot of children nodes and they are changing frequently...
My hierarchy is something like this:
1. First parent node
1.1. First children node of first parent node
1.2. First children node of first parent node
2. Second parent node
2.1. First children node of second parent node
2.2. First children node of second parent node
3. Third parent node
4. Fourth parent node
4.1. First children node of fourth parent node
4.2. First children node of fourth parent node
5. Fifth parent node
In main menu I would like to show only First, Second and Third parent node with their children, but NOT to show Fourth and Fifth parent node with their children. But the setting "Show in menu" is turned ON for all nodes (and I need to keep it ON).
Note: The feature to use the items="XXX,YYY,ZZZ" is not good for me, because there are a lot of children nodes and they are changing frequently...
Last edited by Marciux on Wed Oct 11, 2006 2:16 pm, edited 1 time in total.
Re: How to show not all nodes in menu keeping "Show in menu" ON?
What are you doing with the nodes that you don't want to show in the menu that you have to have the show in menu on.
If you are trying to show them some where on the site in particular but not in other parts the not shown in menu and then {menu items='Fourth parent node,Fifth parent node'} will show them on that page only with the children...
Or you could do it the other way around and leave the show in menu on and put items='First parent node,Second parent node,Third parent node,' this is explained in the menu 'Help'
If you are trying to show them some where on the site in particular but not in other parts the not shown in menu and then {menu items='Fourth parent node,Fifth parent node'} will show them on that page only with the children...
Or you could do it the other way around and leave the show in menu on and put items='First parent node,Second parent node,Third parent node,' this is explained in the menu 'Help'
Last edited by Anonymous on Wed Oct 11, 2006 7:02 pm, edited 1 time in total.
-
Marciux
Re: How to show not all nodes in menu keeping "Show in menu" ON?
Well, I want to have two different menus - one that shows 1,2,3 node and their children and other that shows 4and5 nodes with their children. The problem is that all these 5 nodes are on the same level.
If I enable setting for 4and5 nodes "Show in menu", they appear on menu with 1,2,3 - but they shouldn't. And if I disable setting for 4and5 nodes "Show in menu", the other menu doesn't show them and their children ;(
If I use your suggested setting (items='First parent node,Second parent node,Third parent node'), then my menu doesn't show their children - only these three items...
If I enable setting for 4and5 nodes "Show in menu", they appear on menu with 1,2,3 - but they shouldn't. And if I disable setting for 4and5 nodes "Show in menu", the other menu doesn't show them and their children ;(
If I use your suggested setting (items='First parent node,Second parent node,Third parent node'), then my menu doesn't show their children - only these three items...
Re: How to show not all nodes in menu keeping "Show in menu" ON?
Try putting node 4 and 5 under a page that is not shown in the menu, call it say noshow and the use start_page="noshow" in the tag for that menu.
You will have to put some filler words in the content edit box but the page will never show, so anything.
You will have to put some filler words in the content edit box but the page will never show, so anything.
-
Marciux
Re: How to show not all nodes in menu keeping "Show in menu" ON?
This solution works except one thing - the child node's alias (noshow) is visible in the URL... 
mark wrote: Try putting node 4 and 5 under a page that is not shown in the menu, call it say noshow and the use start_page="noshow" in the tag for that menu.
You will have to put some filler words in the content edit box but the page will never show, so anything.
Re: How to show not all nodes in menu keeping "Show in menu" ON?
Can you show the part past .com/ in the URL?
-
Marciux
Re: How to show not all nodes in menu keeping "Show in menu" ON?
In admin area there is such structure:
1. Root
1.1. No show page
1.1.1. Parent node
1.1.1.1. Child node
Note: 1.1. is not shown in menu. Others are shown.
And in the site's URL there is something like this:
"www.server.com/parent-node" - its OK.
And this 1.1.1. page has a {cms_module module='menumanager' collapse='1' template='list_children' start_page='noshow'} in its content body.
And the menu manager module lists its child nodes, but in URL I see this:
"www.server.com/[b]noshow[/b]/parent-node/child-node".
And this "noshow" alias is the one that I do not want to see in the that URL
1. Root
1.1. No show page
1.1.1. Parent node
1.1.1.1. Child node
Note: 1.1. is not shown in menu. Others are shown.
And in the site's URL there is something like this:
"www.server.com/parent-node" - its OK.
And this 1.1.1. page has a {cms_module module='menumanager' collapse='1' template='list_children' start_page='noshow'} in its content body.
And the menu manager module lists its child nodes, but in URL I see this:
"www.server.com/[b]noshow[/b]/parent-node/child-node".
And this "noshow" alias is the one that I do not want to see in the that URL
Re: How to show not all nodes in menu keeping "Show in menu" ON?
In the root config.php... try changing the false to true
#------------
#URL Settings
#------------
#Show mod_rewrite URLs in the menu? You must enable 'use_hierarchy' for this to work for modules
$config['assume_mod_rewrite'] = false;
#Extension to use if you're using mod_rewrite for pretty URLs.
$config['page_extension'] = '.html';
#If you don't use mod_rewrite, then would you like to use the built-in
#pretty url mechanism? This will not work with IIS and the {metadata} tag
#should be in all of your templates before enabling.
$config['internal_pretty_urls'] = false;
#If you're using the internal pretty url mechanism or mod_rewrite, would you like to
#show urls in their hierarchy? (ex. http://www.mysite.com/parent/parent/childpage)
$config['use_hierarchy'] = false;
#If using none of the above options, what should we be using for the query string
#variable? (ex. http://www.mysite.com/index.php?page=somecontent)
$config['query_var'] = 'page';
#------------
#URL Settings
#------------
#Show mod_rewrite URLs in the menu? You must enable 'use_hierarchy' for this to work for modules
$config['assume_mod_rewrite'] = false;
#Extension to use if you're using mod_rewrite for pretty URLs.
$config['page_extension'] = '.html';
#If you don't use mod_rewrite, then would you like to use the built-in
#pretty url mechanism? This will not work with IIS and the {metadata} tag
#should be in all of your templates before enabling.
$config['internal_pretty_urls'] = false;
#If you're using the internal pretty url mechanism or mod_rewrite, would you like to
#show urls in their hierarchy? (ex. http://www.mysite.com/parent/parent/childpage)
$config['use_hierarchy'] = false;
#If using none of the above options, what should we be using for the query string
#variable? (ex. http://www.mysite.com/index.php?page=somecontent)
$config['query_var'] = 'page';
Last edited by Anonymous on Fri Oct 13, 2006 5:03 pm, edited 1 time in total.
-
Marciux
Re: How to show not all nodes in menu keeping "Show in menu" ON?
I already use these settings:
#Show mod_rewrite URLs in the menu? You must enable 'use_hierarchy' for this to work for modules
$config['assume_mod_rewrite'] = true;
#Extension to use if you're using mod_rewrite for pretty URLs.
$config['page_extension'] = '';
#If you don't use mod_rewrite, then would you like to use the built-in
#pretty url mechanism? This will not work with IIS and the {metadata} tag
#should be in all of your templates before enabling.
$config['internal_pretty_urls'] = false;
#If you're using the internal pretty url mechanism or mod_rewrite, would you like to
#show urls in their hierarchy? (ex. http://www.mysite.com/parent/parent/childpage)
$config['use_hierarchy'] = true;
#If using none of the above options, what should we be using for the query string
#variable? (ex. http://www.mysite.com/index.php?page=somecontent)
$config['query_var'] = 'page';
#Show mod_rewrite URLs in the menu? You must enable 'use_hierarchy' for this to work for modules
$config['assume_mod_rewrite'] = true;
#Extension to use if you're using mod_rewrite for pretty URLs.
$config['page_extension'] = '';
#If you don't use mod_rewrite, then would you like to use the built-in
#pretty url mechanism? This will not work with IIS and the {metadata} tag
#should be in all of your templates before enabling.
$config['internal_pretty_urls'] = false;
#If you're using the internal pretty url mechanism or mod_rewrite, would you like to
#show urls in their hierarchy? (ex. http://www.mysite.com/parent/parent/childpage)
$config['use_hierarchy'] = true;
#If using none of the above options, what should we be using for the query string
#variable? (ex. http://www.mysite.com/index.php?page=somecontent)
$config['query_var'] = 'page';
Re: How to show not all nodes in menu keeping "Show in menu" ON?
Is this running on a widows server?
Re: How to show not all nodes in menu keeping "Show in menu" ON?
Your config file that is in this thread still has the hierarchy set to true you want to set it to false...
If you aren't using the first rule "mod_rewrite URLs", with the .htaccess file you need to turn it off, false, if you are then the hierarchy has to be true so it will end up showing the 'noshow' page...#If you're using the internal pretty url mechanism or mod_rewrite, would you like to
#show urls in their hierarchy? (ex. http://www.mysite.com/parent/parent/childpage)
$config['use_hierarchy'] = true;

