[TYPO3] HMENU/TMENU problems (not getting rid of some of the HTML coding on first level/where there are no subpages) SOLVED

Erik Svendsen erik at linnearad.no
Mon Mar 13 09:27:06 CET 2006


Hello list,

> Following TS looks like it works.

Correcting myself. Got some problems with treeLevel (wonder why)
> 
> <!--- snip --->
> [treeLevel = 1,2,3] //Condition who tells that this part only should

[globalVar = TSFE:id > 1] did the trick. My rootpage had the id = 1

> be used
> on treelevel 1, 2, 3, and not 0 (root)
> lib.subMenu = COA
> lib.subMenu {
> 10 = HMENU
> 10.special = directory
> 10.special.value.field = uid
> 10.if.isTrue.numRows {     //Testing fo subpages - if subpages doesnt
> exist,
> no menu
> table = pages
> select.pidInList.data = uid
> }
> 10 {
> entryLevel = 1
> stdWrap.dataWrap = <div id="submenu"><div
> id="submenutitle">{leveltitle
> : 1}</div>
> }
> 20 = HMENU
> 20.special = directory
> 20.special.value.field = uid
> 20.if.isTrue.numRows {
> table = pages
> select.pidInList.data = uid
> }
> 20.entryLevel = 1
> 20.wrap = <ul id="level1">|</ul></div>
> 20.1 = TMENU
> 20.1.NO {
> allWrap = <li>|</li>
> ATagParams = style="background:none;"|*|style=""
> }
> 20.1.ACT = 1
> 20.1.ACT {
> allWrap = <li class="act">|</li>
> ATagParams = style="background:none;"|*|style=""
> }
> }
> [global]

WBR,
Erik Svendsen
www.linnearad.no





More information about the TYPO3-english mailing list