[TYPO3-english] doNotLinkIt override not working for second level

StephenBungert stephenbungert at yahoo.de
Mon Feb 23 14:11:48 CET 2009


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
>> 
>> 
> 
> 


-----
-- 
Stephen Bungert
-- 
View this message in context: http://www.nabble.com/-TYPO3-english--doNotLinkIt-override-not-working-for-second-level-tp22104465p22161241.html
Sent from the TYPO3 English mailing list archive at Nabble.com.



More information about the TYPO3-english mailing list