[TYPO3] checking for global variable, for disabling menu
JoH asenau
info at cybercraft.de
Thu Feb 22 12:19:45 CET 2007
>>> You could use a typoscript condition like this:
>>>
>>> [globalVar = GP:tx_commerce_pi1|catUid=155]
>>> <disable your menu items>
>>> [global]
>>>
>>> Kind regards,
>>>
>>> Arjen Hoekema
>>
>>
>> Then menu just disappears...
>>
>> I enter
>>
>> noLink = 1
>>
>> like replace for <disable your menu items>. Its code that disables
>> menu items if I write it without condition...
>
> Yes, I forgot to mention, I wrote it under NO of GMENU.
>
> When I put just noLink = 1, it works fine, I mean, it disables menu...
of course, but you have to use the condition outside of curly braces and
change the whole "TS tree" inside:
blah = HMENU
blah {
1 = GMENU
1 {
NO {
whatever
}
}
}
[condition]
blah.1.NO {
noLink = 1
}
[global]
HTH
Joey
--
Wenn man keine Ahnung hat: Einfach mal Fresse halten!
(If you have no clues: simply shut your gob sometimes!)
Dieter Nuhr, German comedian
openBC/Xing: http://www.cybercraft.de
T3 cookbook: http://www.typo3experts.com
More information about the TYPO3-english
mailing list