Hi Michael,
On Fri, 07 Jul 2006 11:30:49 +0200
Michael Stiller <ms at 2scale.net> wrote:
| i tried webgen and find it good and fast to use.
| But imho the documentation is bad and incomplete.
| Actually i''m stuck and have no idea how to build a menu with submenus
| as seen on the webgen page. (like the documentation menu)
| Any hints, pointers or howto''s ?
You can build menus with submenus like this: imagine the following file
structure in your src/ directory:
- index.page
- features.page
- documentation/
- index.page
- howto.page
- tutorial.page
- apidoc/
- index.page
- otherdoc.page
The menu for this website will have the same structure, eg.
features.page in the first menu level, howto.page in the second
and otherdoc.page in the third level. This means that each subdirectory
in your src/ directory starts a new submenu!
Now, to include a menu in your site, you use the {menu:} tag. There are
several different menu styles available, two of which provide the
dropdown feature seen on the webgen homepage. To select a specific menu
style for your site, specify it in the menu tag. For example, to select
the vertical dropdown menu style used on the webgen homepage, you need
to insert this tag into your template:
{menu: {menuStyle: vertical-dropdown}}
Here are some links where you can find more information:
Menu Tag Reference
http://webgen.rubyforge.org/documentation/plugins/tags/menu.html
Options for all menu styles
http://webgen.rubyforge.org/documentation/plugins/menustyles/index.html
Vertical Dropdown menu style Reference
http://webgen.rubyforge.org/documentation/plugins/menustyles/verticaldropdown.html
*hth*,
Thomas