[TYPO3-english] doNotLinkIt override not working for second level
Bas van der Togt
bas.vander.togt at efocus.nl
Mon Feb 23 17:55:26 CET 2009
Thanks for your suggestions Stephen.
I fixed it this way:
obj.nav.20 = HMENU
obj.nav.20 {
includeNotInMenu = 1
special = list
special.value = 98,97,96,95,94
1 = TMENU
1 {
expAll = 1
noBlur = 1
NO = 1
NO {
wrapItemAndSub = <li class="regio">|</li>
allWrap = <h3>|</h3>
doNotLinkIt = 1
}
ACT < .NO
}
2 = TMENU
2 {
expAll = 1
wrap = <ul>|</ul>
noBlur = 1
NO = 1
NO {
subst_elementUid = 1
doNotLinkIt = 1
allWrap = <li><a href="index.php?id={elementUid}">|</a></li>
allWrap {
override = <li><a href="javascript:showpopup({elementUid});">|</a></li>
override.if
isTrue.field = nav_hide
}
}
}
ACT < .NO
}
}
StephenBungert wrote:
> Or, in your IProcFunc just check th epage ID and remove the link if it is
> supposed to not be linked. Of course, this is not much good if the pages
> that are like this change often or get increased.
>
>
>
> StephenBungert wrote:
>> So you want to see all pages in the menu, and if they have the hide "in
>> menu field" checked, then they aren't linked? Not sure how you would do
>> that in TS, I find the 'if' difficult to get working.
>>
>> I would probably just use an IProcFunc and go through the menu array. I
>> think you get to see in each items element if it has this field checked
>> (could be wrong about that) and just delete everything to do with the
>> link.
>>
>>
>>
>> Bas van der Togt-2 wrote:
>>> Hello list,
>>>
>>> In the following menu i build an if statement for doNotLinkIt on level
>>> 2 (if.isTrue.field = nav_hide). However this does work in level 1 but
>>> not in level 2. Is this a bug?
>>>
>>> best regards,
>>> Bas
>>>
>>> obj.nav.20 = HMENU
>>> obj.nav.20 {
>>>
>>> includeNotInMenu = 1
>>> special = list
>>> special.value = 98,97,96,95,94
>>>
>>> 1 = TMENU
>>> 1 {
>>> expAll = 1
>>> noBlur = 1
>>>
>>> NO = 1
>>> NO {
>>> wrapItemAndSub = <li class="regio">|</li>
>>> allWrap = <h3>|</h3>
>>> doNotLinkIt = 1
>>> }
>>>
>>> ACT < .NO
>>> }
>>>
>>> 2 = TMENU
>>> 2 {
>>> expAll = 1
>>> wrap = <ul>|</ul>
>>> noBlur = 1
>>>
>>> NO = 1
>>> NO {
>>> subst_elementUid = 1
>>> doNotLinkIt = 0
>>> doNotLinkIt {
>>> override = 1
>>> override.if.isTrue.field = nav_hide
>>> }
>>> allWrap = <li>|</li>
>>> allWrap {
>>> override = <li> javascript:showpopup({elementUid}); | </li>
>>> override.if.isTrue.field = nav_hide
>>> }
>>> }
>>>
>>> ACT < .NO
>>> }
>>> }
>>> _______________________________________________
>>> TYPO3-english mailing list
>>> TYPO3-english at lists.netfielders.de
>>> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english
>>>
>>>
>>
>
>
> -----
More information about the TYPO3-english
mailing list