How to
If you want to use YAML with TYPO3 you will need some code snipptes for the HMENU in TypoScript. I have made my own structure, let’s have a look …
First tell TYPO3 where the Menu should be appear, you can do this with ###MARKERS### in your template or use TemplaVoila (lib.menu).
Then you have do build the HMENU Object:
lib.menu = HMENU
lib.menu {
1 = TMENU
entryLevel = 0
wrap = <ul class="vlist">|</ul>
1 {
#delete blurtag
noBlur = 1
#expand menu?
expAll = 1
NO = 1
NO.wrapItemAndSub = <li>|</li>
NO.ATagTitle.field = title
CUR = 1
CUR {
wrapItemAndSub = <li>|</li>
ATagParams= class="active"
}
}
2 < .1
2.wrap = <ul>|</ul>
# 3,4, ... expand for more levels
}
Now TYPO3 will generate a nice Menu and you can style it with CSS.
If you like my idea – leave a comment.
Greetz
Martin
Related posts:
- mixed TypoScript Snippets Vol. 1
- How to … change the title-element in TYPO3
- How to … set permission chmod for TYPO3
- How to … change the standard target for links in TYPO3
- How to … add metatags to TYPO3 website
- How to … set the favicon in TYPO3
- How to delete csc-default and id tag in TYPO3 4.3
- How to code a jQuery slider menu
I think it’s the same TypoScipt who is publish on the official Page:
http://www.t3net.de/dokumentation/yaml-fuer-templavoila/typoscript-bibliotheken/libnav.html and
http://www.t3net.de/dokumentation/yaml-fuer-templavoila/typoscript-bibliotheken/libsubmenu.html
Hello!
Very Interesting post! Thank you for such interesting resource!
PS: Sorry for my bad english, I’v just started to learn this language
See you!
Your, Raiul Baztepo