[Typo3] Subparts and condition

Victor V. Solovey victor at solovey.com.ua
Sat Mar 19 02:50:58 CET 2005


Hi list.

This is schematic part of my template:

------------ subpart.block -----------

  very complex html code here...

----------- subpart.submenu ----------

  content from typo here

---------- subpart.submenu end -------

  very complex html code here...

---------- subpart.block end ---------

This is my cutted code:
-----
temp.submenu = HMENU
temp.submenu.entryLevel = 1
temp.submenu.1 = TMENU
temp.submenu.1 {
	wrap = <ul> | </ul>
	NO.allWrap = <li>}i{&nbsp;&nbsp;| </li>
}
....
subparts.submenu < temp.submenu
----

Good.
What i need is if there is no subpages i have to clear subpart.block at all.
Of course i can add code of block to wrap like this:
wrap = very complex html<ul> | </ul>very complex html
but code is very long.

How can i do something like this:

if (temp.submenu != "") {
	subparts.submenu < temp.submenu
} else {
	subparts.block =
}

Is any ways to do this ?

Thank you list.




-- 
_____________________________________________________
:: Victor V. Solovey [ mailto:victor at solovey.com.ua ]
:: ICQ#              [ 19901730                     ]




More information about the TYPO3-english mailing list