People, I create a new project and add a "t.page": --- title: testpage routed_title: testing --- ## Testing testing but this is added to the menu - why is this? How can I prevent it? Thanks, Phil. -- Philip Rhoades GPO Box 3411 Sydney NSW 2001 Australia E-mail: phil at pricom.com.au
Hi Phil, Am Fri, 17 Oct 2008 12:28:38 +1100 schrieb Phil <phil at pricom.com.au>:> People, > > I create a new project and add a "t.page": > > --- > title: testpage > routed_title: testing > --- > ## Testing > > testing > > but this is added to the menu - why is this? How can I prevent it?This is because of a bad menu tag in website template. I have put this on my TODO list to fix it for the next release. The t.page is not in the menu. However, it has one fragment node (for the ## Testing header) and fragment nodes are in the menu per default. Since the menu tag used in the default.template looks like this: {menu: {max_levels: 1}} the t.page appears in it because the menu uses all nodes per default, meaning that all nodes appear in the menu which have in_menu set to true or which have sub-nodes that have in_menu set to true. The latter is true for t.page. Just change the menu tag to the following {menu: {max_levels: 1, used_nodes: files}} and the t.page won''t appear in the menu anymore. -- Thomas
Thomas, Thomas Leitner wrote:> Hi Phil, > > Am Fri, 17 Oct 2008 12:28:38 +1100 > schrieb Phil <phil at pricom.com.au>: > >> People, >> >> I create a new project and add a "t.page": >> >> --- >> title: testpage >> routed_title: testing >> --- >> ## Testing >> >> testing >> >> but this is added to the menu - why is this? How can I prevent it? > > This is because of a bad menu tag in website template. I have put this > on my TODO list to fix it for the next release. > > The t.page is not in the menu. However, it has one fragment node (for > the ## Testing header) and fragment nodes are in the menu per default. > Since the menu tag used in the default.template looks like this: > > {menu: {max_levels: 1}}Mine is: {menu: }> the t.page appears in it because the menu uses all nodes per default, > meaning that all nodes appear in the menu which have in_menu set to > true or which have sub-nodes that have in_menu set to true. The > latter is true for t.page. Just change the menu tag to the following > > {menu: {max_levels: 1, used_nodes: files}} > > and the t.page won''t appear in the menu anymore.Thanks! Regards, Phil. -- Philip Rhoades GPO Box 3411 Sydney NSW 2001 Australia E-mail: phil at pricom.com.au