Hi,
I''m currently switching to webgen and I want to use it for my private
homepage. However I''ve got a problem with menus. I''ve set
default_meta_info:
Page:
in_menu: true
in the config.yaml file and have the following structure:
/
index.page
imprint.page # has in_menu:false
projects/
index.page
students.page
This generates a perfect level 1 menu, but when I click on projects I get
Index
# no imprint, it''s correctly hidden
Projects
Projects
Students
The HTML for the Projects part looks like this:
<li class="webgen-menu-level1 webgen-menu-submenu
webgen-menu-submenu-inhierarchy"><span>Projects</span>
<ul><li class="webgen-menu-level2
webgen-menu-item-selected"><span>Projects</span></li>
<li class="webgen-menu-level2"><a
href="students.html">Students</a></li>
</ul>
</li>
I don''t want this entry twice, did I configure something wrong? What
can I do to get rid of it?
Best regards
Guido
Hi,> This generates a perfect level 1 menu, but when I click on projects I > get Index > # no imprint, it''s correctly hidden > Projects > Projects > Students > > The HTML for the Projects part looks like this: > > <li class="webgen-menu-level1 webgen-menu-submenu > webgen-menu-submenu-inhierarchy"><span>Projects</span> > <ul><li class="webgen-menu-level2 > webgen-menu-item-selected"><span>Projects</span></li> > <li class="webgen-menu-level2"><a > href="students.html">Students</a></li> </ul> > </li>You need to set `in_menu: false` on `projects/index.page`. When you click on ''Projects'', webgen automatically shows the index file (index.page) for the directory and if you don''t want the index file to additionally appear, you have to remove it from the menu. Best regards, Thomas
Hi, this is just what I wanted. On Sun, Aug 9, 2009 at 15:14, Thomas Leitner<t_leitner at gmx.at> wrote:> You need to set `in_menu: false` on `projects/index.page`. When you > click on ''Projects'', webgen automatically shows the index file > (index.page) for the directory and if you don''t want the index file to > additionally appear, you have to remove it from the menu.Maybe this could be added to one of the examples. Best regards and thank you very much for this great tool! Guido -- Raum O27/3215, Institut f?r Medieninformatik, Universit?t Ulm, 89069 Ulm Tel. +49 731 50 15055, Fax +49 731 50 31302 http://guido.demelo.de/