- This script is compatible with Bootstrap 2.2.2
- set the constant
lib.page.homepage
with the id of your homepage - set the constant
lib.navbar.main
with the id of the root page of your navigation - set the constant
lib.navbar.right
with the id of the root page of your right navigation
You can build a navigation with 3 levels ... and no more.
Page of type SPC
are :
- on the first level vertical divider
- on the seconde & third level horizontal divider. The title of the page is use as the title of the next section.
- Can't creat divider on level 2 & 3 without a title
... and of course
Feel free to use it at your own risk
Hi,
Couldn't get your TS running first, but after some modifications all runs well now.
Thanx a lot, had spent hours and hours with my own coding ...
lib.field_navbar = COA
lib.field_navbar {
wrap (
10 = COA
10 {
wrap = |
10 = TEXT
10.value =
20 < .10
30 < .10
}
brand
20 = TEXT
20 {
value = My brand
typolink.parameter = {$lib.page.homepage}
typolink.title = Back to homepage
typolink.ATagParams = class="brand"
}
collapse
30 = COA
30 {
wrap =
nav
/*
Search
Recherche ) # right menu*/
}
}