[Typo3] Wrap submenu in different div

andreas steinhuber andre01 at typotemp.com
Tue Aug 9 12:11:59 CEST 2005


Hi a.lim				

First rule is to look in the tsref and the properties!
http://typo3.org/documentation/document-library/doc_core_tsref/
http://typo3.org/documentation/document-library/doc_core_tsref/HMENU-1/
http://typo3.org/documentation/document-library/doc_core_tsref/Common_properties/
http://typo3.org/documentation/document-library/doc_core_tsref/Common_item_states_f/
http://typo3.org/documentation/document-library/doc_core_tsref/TMENU-1/

Second rule is to look at the examples in the tsref!
http://typo3.org/documentation/document-library/doc_core_tsref/
http://typo3.org/documentation/document-library/doc_core_tsref/HMENU-1/
http://typo3.org/documentation/document-library/doc_core_tsref/Common_properties/
http://typo3.org/documentation/document-library/doc_core_tsref/Common_item_states_f/
http://typo3.org/documentation/document-library/doc_core_tsref/TMENU-1/

Third rule is just keep on....
Here an working example:
lib.rightmenu = HMENU 
lib.rightmenu.entryLevel = 1

lib.rightmenu.1 = TMENU
lib.rightmenu.1 {
NO.allStdWrap.dataWrap = <div id="right_menu_{register:count_HMENU_MENUOBJ}">|</div>

NO {
linkWrap = |
}
}

Some explanation:
You have to define the hmenu type at first.
To use the register you need stdWrap properties - http://typo3.org/documentation/document-library/doc_core_tsref/stdWrap/
So for a Text Menu you need a property with a stdWrap data type - look in tmenuitem for the properties: allWrap you can't use - no stdWrap dataType. You could use before and after but allStdWrap is perfect.

enjoy trying
Andreas





- andreas steinhuber (kommanderprix)

-----------------------
This thread is located in the archive at this URL:
http://typo3.org/documentation/mailing-lists/english-main-list-archive/thread/110133736/
					



More information about the TYPO3-english mailing list