[TYPO3] Is the current page a parent for others ?

Jérémy Lecour jeremy.lecour at gmail.com
Mon Feb 6 16:05:07 CET 2006


Hi,

I use TemplaVoila in a 4.0beta2

I have a "lib.menu_x" that is always included in the templates.
This menu  a menu with the sub-pages (and sub-sub-pages) of the current page.
It's a COA that begins with the (menu-)name of the current page and
then continues with a HMENU ( up to 2 sub levels)
I have a wrap on my menu to add a <div>-tag around my menu.

I'd like not to display my menu when the current page doesn't have any
children by deleting my code

I've tried with some "ifempty" and "required" codes, but nothing is changing.

Here is my TS :

lib.menu_x = COA
lib.menu_x.10 = COA
lib.menu_x.10 {
	10 = HMENU
	10  {
		entryLevel = 3
		special = list
		1 = TMENU
		1 {
			NO.allWrap = <h4 class="titre-menu-x">|</h4>
			NO.ATagTitle.field = abstract // description // subtitle // title
			NO.stdWrap.htmlSpecialChars = 1
			NO.doNotLinkIt = 1
		}
	}
	20 = HMENU
	20  {
		entryLevel < lib.menu_x.10.10.entryLevel
		1 = TMENU
		1 {
			NO.wrapItemAndSub = <li class="first"> | </li>|*|<li class=""> | </li>|*|
			NO.ATagTitle.field = abstract // description // subtitle // title
			NO.stdWrap.htmlSpecialChars = 1
			ACT < .NO
			ACT = 1
			ACT.wrapItemAndSub = <li class="act first"> | </li>|*|<li
class="act"> | </li>|*|
			CUR < .NO
			CUR = 1
			CUR.wrapItemAndSub = <li class="cur first"> | </li>|*|<li
class="cur"> | </li>|*|
		}
		2 < .1
		2.wrap = <ul class="niv2"> | </ul>
		wrap = <ul>|</ul>
	}
	wrap = <div id="menu_x">|</div>
}
--
Jérémy Lecour : <mailto:jeremy.lecour at gmail.com>
webdesigner, webmaster et développeur web
Trésorier du PLUG : Provence Linux User Group
http://www.plugfr.org/



More information about the TYPO3-english mailing list