[webgen-users] Trouble with menu generation
t_leitner at gmx.at
Thu Sep 30 03:01:32 EDT 2010
On 2010-09-29 15:24 -0700 Patrick McCarty wrote:
> The only pages/directories I want *excluded* from this menu are video/
> and video/index.page, so I set my "in_menu" entries accordingly.
> The problem is that video/index.page is not excluded from the menu,
> even if "in_menu: false" is set.
> I experimented with this for a bit, and I discovered that by removing
> all headers (h1, h2, etc.) from video/index.page, video/ and
> video/index.page *are* excluded from the menu, which is what I want.
> In other words, it seems that whenever a header has an "id" attribute,
> its containing page doesn't honor the "in_menu" setting.
> Is this a bug, or is there a solution that I overlooked?
You need to look into the default.template where the menu is defined
and set the key-value pair `used_nodes: files`. If this key is not set
or set to `all`, then all nodes, even fragment nodes generated from
headers with IDs, are used in a menu!
More information about the webgen-users