X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/blobdiff_plain/bc96a06b992213d9e09ec8ec6fb6f028e53791bd..f7d89faec9f747a800564b6bd3f9bc155402e37d:/doc/todo/a_navbar_based_on_page_properties.mdwn diff --git a/doc/todo/a_navbar_based_on_page_properties.mdwn b/doc/todo/a_navbar_based_on_page_properties.mdwn index 7300aced2..09be409ac 100644 --- a/doc/todo/a_navbar_based_on_page_properties.mdwn +++ b/doc/todo/a_navbar_based_on_page_properties.mdwn @@ -7,17 +7,23 @@ properties. So imagine four pages A, B, A/C, and A/D, and these pages would include the following directives, respectively - \[[navbar id=main priority=3]] - \[[navbar id=main priority=5]] - \[[navbar id=main title="Something else"]] - \[[navbar id=main]] - -then the computed navigation bar would be - - B - A - Something else - D + \[[!navbaritem navbar=main priority=3]] + \[[!navbaritem navbar=main priority=5]] + \[[!navbaritem navbar=main title="Something else"]] + \[[!navbaritem navbar=main]] + +then one could insert `\[[!navbar id=main maxlevels=0]]` somewhere and it +would get replaced with (this being in the context of viewing page C): + +
B would sort before A because it has a higher priority, but C would sort before D because their priorities are equal. The overridden title is not used @@ -25,11 +31,11 @@ for sorting. Also, the code automatically deduces that C and D are second-level under A. -Obviously, while on e.g. A/C, the `