Hi again,
I'm still struggling with porting some stuff to 1.0 and I'm really
confused. I wish documentation had more ready-made porting recipes
(i.e. "if your code was [...] then you should replace it with [...]").
I had a site with a structure that looks like that:
sect1.html
sect2.html
sect3/index.html
sect3/subsect1.html
sect3/subsect2.html
sect4/index.html
sect4/subsect1.html
sect4/subsect2.html
sect4/subsect3/index.html
sect4/subsect3/subsubsect1.html
Previously, I've used the following, very simple macro for ready-made
menu that was pretty good:
{menu: {max_levels: 2}}
Basically, it did the simple and intuitive thing. For sect1 and sect2
it showed only top-level menus, including links to indexes from
directories sect3 and sect4:
* sect1
* sect2
* sect3/index
* sect4/index
For any path in sect3 it showed top level sections + inner contents of sect3:
* sect1
* sect2
* sect3/index
** sect3/subsect1
** sect3/subsect2
* sect4/index
For any path in sect4 it showed top level sections + inner contents of
sect4, but only up to second level, including indexes to third level:
* sect1
* sect2
* sect3/index
* sect4/index
** sect4/subsect1
** sect4/subsect2
** sect4/subsect3/index
That's all I need. I've already tried:
{menu: {options: {mi: {in_menu: true}, sort: true, absolute_levels:
[1, 2], lang: node}}}
{menu: {options: {mi: {in_menu: true}, sort: true, levels: [1, 2], lang: node}}}
{menu: {options: {mi: {in_menu: true}, sort: true, absolute_levels:
[1, 2], and: {levels: [1, -1]}, lang: node}}}
{menu: {options: {mi: {in_menu: true}, sort: true, siblings: [0, -1]}}}
None of these behave as "{menu: {max_levels: 2}}" did previously, as
I've detailed above. What is the correct way to add a menu like I had
in 0.x?
--
WBR, Mikhail Yakshin
_______________________________________________
webgen-users mailing list
webgen...@rubyforge.org
http://rubyforge.org/mailman/listinfo/webgen-users