[TYPO3-dev] Hooks for class.tslib_menu.php

JoH info at cybercraft.de
Fri Jun 9 17:40:30 CEST 2006


>> Well - it seems that you always try to implement something new, when
>> you don't understand how things should be done.
>> You don't even need something like userdefined since a simple
>> stdWrap.if (or maybe allStdWrap.if) would do the job perfectly fine.
>>
>> Joey
>>
> if is available for HMENU, but not for TMENU or GMENU and items (NO
> etc.).

Wrong.
http://typo3.org/documentation/document-library/references/doc_core_tsref/current/view/10/8/
http://typo3.org/documentation/document-library/references/doc_core_tsref/current/view/10/4/

TMENUITEM has got stdWrap stdWrap2 _and_ allStdWrap
GMENUITEM has got allStdWrap

Working solution for both TMENU and GMENU:

NO {
    allStdWrap.if {
          value.field = newUntil
          isGreaterThan.data = date:U
          negate = 1
    }
}

Joey

-- 
Wenn man keine Ahnung hat: Einfach mal Fresse halten!
(If you have no clues: simply shut your knob sometimes!)
Dieter Nuhr, German comedian
openBC: http://www.cybercraft.de 






More information about the TYPO3-dev mailing list