[TYPO3] If submenu is empty different COA
tapio
tapio.markula at dnainternet.net
Thu Mar 2 20:17:32 CET 2006
Peter Klein wrote:
> "tapio" <tapio.markula at dnainternet.net> wrote in message
> news:mailman.1.1141243158.5048.typo3-english at lists.netfielders.de...
>
>>tapio wrote:
>
>
>>I found
>> Feature request: ifNotEmpty.
>>
>>What I would need needs missing 'ifNotEmpty' to give alternative
>
>
> That's not reallly needed. Just use the "if" function. (You can even reverse
> the if conditions, using the "negate" property.)
You mean options, which have mentioned for example in this page:
http://www.typo3.net/tsref/functions/if/
I tried
temp.menu_2 = HMENU
temp.menu_2.entryLevel=2
temp.menu_2.1.isTrue = COA
temp.menu_2.1.isTrue{
10 < temp.menu_3a
}
temp.menu_2.1.ifEmpty = COA
temp.menu_2.1.ifEmpty {
10 < temp.menu_3b
}
temp.menu_3a=COA
{
10 < styles.content.get
20=TEXT
20 {
value=</td><td class="menuCell">
}
30 < temp.menu_2a
40=TEXT
{
value=</td>
}
}
temp.menu_3b=COA
{
10 < styles.content.get
20=TEXT
{
value=</td>
}
}
# Third level menu-object, textual
temp.menu_2a = HMENU
temp.menu_2.entryLevel=2
temp.menu_2a.1 = TMENU
temp.menu_2a.1 {
wrap=<table cellpadding="0" cellspacing="0" style="margin:0;
height:100%; width:168px; background-color:#F7F7F4"><tr><td valign="top"
class="menu_2_header" width="168" height="25"></td></tr><tr><td
height="10"></td></tr><tr><td valign="top">|</td></tr></table>
NO = 1
NO.allWrap = <div class="menu2-level3-no"> | </div>
NO.linkWrap = <span>|</span>
NO.ATagBeforeWrap = 1
ACT < .NO
ACT.allWrap = <div class="menu2-level3-act"> | </div>
ACT.linkWrap = <span class="act">|</span>
ACTIFSUB < .ACT
CUR < .ACT
CUR.linkWrap = <span class="cur">|</span>
CUR.doNotLinkIt=1
CURIFSUB < .CUR
}
Didn't work. I didn't get a working solution.
More information about the TYPO3-english
mailing list