I need help at building a menu with Typo3. Currently I build my menu like this in TS:
TopNavigation = HMENU
TopNavigation {
special = directory
special.value = 3
entryLevel = 1
1 = TMENU
1.expAll = 1
1.NO = 1
1.NO.wrapItemAndSub = <li class="parent"> | </li>
2 < .1
2.expAll = 0
2.NO = 1
2.NO.ATagBeforeWrap = 1
2.NO.wrapItemAndSub = <li> | </li>
2.wrap = <ul class="dropdown"> | </ul>
}
But like this, Typo3 uses the page tree to create the navigation. Now I want to add anchors from the page itself to my navigation. The TS which I found out to do this look like this:
AnchorNavigation = CONTENT
AnchorNavigation {
table = tt_content
select {
pidInList = this
orderBy = sorting
where = colPos=0 AND sectionIndex=1
languageField=sys_language_uid
}
wrap = <ul>|</ul>
renderObj = TEXT
renderObj {
field = header
dataWrap= <li><a href="#c{field:uid}">|</a> </li>
}
}
This works fine, but how do I combine my theese both?
Finally, I want to have something like this:
Parent Page 1
Parent Page 2
-> Anchor 1
-> Anchor 2
-> Anchor 3
-> Childpage 1
Parent Page 3
-> Anchor 1
-> Anchor 2
-> Anchor 3
Parent Page 4
I hope that somebody can help me.