Skip to content

Instantly share code, notes, and snippets.

@renekreupl
Created May 2, 2013 15:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save renekreupl/5502884 to your computer and use it in GitHub Desktop.
Save renekreupl/5502884 to your computer and use it in GitHub Desktop.
Navigation 3 Ebenen mit ID
tmp.navigation = HMENU
tmp.navigation.1 = TMENU
tmp.navigation.1 {
expAll = 1
wrap = <ul id="nav">|</ul>
NO {
wrapItemAndSub = <li>|</li>
}
ACT = 1
ACT {
wrapItemAndSub = <li class="aktiv">|</li>
}
}
tmp.navigation.2 < tmp.navigation.1
tmp.navigation.2 {
expAll = 1
wrap = <div class="subnav"><ul class="subnavul">|</ul><div class="clear"></div><div class="arrow"></div></div>
}
tmp.navigation.2.NO {
allWrap.insertData = 1
allWrap = <li class="nav{field:uid}">|
wrapItemAndSub = |</li>
stdWrap.cObject = COA
stdWrap.cObject {
10 = TEXT
10.field = title
10.wrap = |
}
}
tmp.navigation.2.ACT {
allWrap.insertData = 1
allWrap = <li class="nav{field:uid} aktiv">|
wrapItemAndSub = |</li>
stdWrap.cObject = COA
stdWrap.cObject {
10 = TEXT
10.field = title
10.wrap = |
}
}
tmp.navigation.3 < tmp.navigation.1
tmp.navigation.3 {
expAll = 1
wrap = <ul>|</ul>
}
tmp.navigation.3.NO {
wrapItemAndSub = <li>|</li>
stdWrap.cObject = COA
stdWrap.cObject {
10 = TEXT
10.field = title
10.wrap = |
}
}
tmp.navigation.3.ACT {
wrapItemAndSub = <li class="aktiv">|</li>
stdWrap.cObject = COA
stdWrap.cObject {
10 = TEXT
10.field = title
10.wrap = |
}
}
temp.mainTemplate.subparts.hauptnav1 < tmp.navigation
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment