[TYPO3] Example for 'userdefined' for HMENU

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


> Ok. Because I was'n familiar using userdefined
> I just made a direct hack to class.tslib_menu.php
> case 'updated':
> ...
>
> switch($mode) {
>
> case 'newuntil':
> ...
> }
>
> // allow to list also pages, which are normally hidden -
>
> if ($this->conf['special.']['excludeNavHide']) {
> $extraWhere = ' AND pages.nav_hide=0';
> }
>
> $thisTime=gettimeofday();
> $thisTime=$thisTime['sec'];
> if ($this->conf['special.']['beforeCurrentTime']) {
> $extraWhere = ' AND pages.newUntil<='.$thisTime;
> }
>
> The idea of this hack is that it list pages, which should be
> updated (date of newUntil is older than the currect time)
>
> (because that file is often changes XCLASSing
> is not a working idea).

Is there any reason for such a hack?
Why don't you use stdWrap.if or allStdWrap.if for that purpose?

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-english mailing list