[TYPO3] Need help with a conditional...

Christopher Torgalson bedlamhotel at gmail.com
Thu Oct 4 17:07:09 CEST 2007


Hi,

On 10/4/07, Timothy Patterson <tjpatter at svsu.edu> wrote:
> I don't mean to sound like a rookie, but I just can't figure out how to
> get this to work...  It just doesn't seem to care what the doktype is,
> etc.  Any suggestions?
>
> Here is my Typoscript:
>
> # Menu Object
> temp.menu_1 = HMENU
> temp.menu_1.alwaysActivePIDlist = 1185
>
> # First level menu-object - textual
> temp.menu_1.1 = TMENU
> temp.menu_1.1 {
>         wrap = <ul>|</ul>
>
>         # Normal State Properties
>         NO.allWrap = <li>|</li>
>         NO.stdWrap.htmlSpecialChars = 1
>
>         # Enable Active State & Set Properties
>         ACT = 1
>         ACT.wrapItemAndSub = <li>|</li>
>         ACT.stdWrap.htmlSpecialChars = 1
>         ACT.doNotLinkIt = 0
>
>         [globalVar = TSFE:page|doktype=123]
>                 temp.menu_1.1.ACT.doNotLinkIt = 1
>         [global]
> }


Read the TSref's section on conditions; conditions may NOT occur
within '{' and '}'. Even if they could, you've got the full object
name in your condition, so if they could work in that context, you'd
have changed the value of

temp.menu_1.1.temp.menu_1.1.ACT.doNotLinkIt = 1

...which, of course, does not exist.

Move the '}' on the last line to just before your condition, and it should work.

-- 
Christopher Torgalson
http://www.typo3apprentice.com/


More information about the TYPO3-english mailing list