[TYPO3-english] 'negate' menu item if 'media' is empty

JoH asenau info at cybercraft.de
Tue May 4 13:46:28 CEST 2010


> This works good, but I'm still getting: <a href="menu/item6.html"></a>
> for a pages with empty 'media' field.

I guess this is the bad guy here:

>     beforeImgLink = 1

Since it can't be deacitvated using TS, you got 3 options:

1) move the image from beforeImg into the main part of the item
2) use typolink for beforeImg instead of just activating the link
3) use allStdWrap.if instead of just stdWrap.if to deactivate the whole item

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
Xing: http://contact.cybercraft.de
Twitter: http://twitter.com/bunnyfield
TYPO3 cookbook (2nd edition): http://www.typo3experts.com




More information about the TYPO3-english mailing list