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

Stefan Kreisberg stefanNOSPAM at linkfactory.dk
Fri Jun 9 11:11:44 CEST 2006


Tapio Markula wrote:

> Hi
> 
> I was forced to edit
> special types of menus
> 
> I know that the right way would be
> to define an own type but it was
> faster to edit class.tslib_menu.php.
> 
> I would be wery desirable if
> special types could have hooks to
> add new select options, because
> if-statements and select properties
> are not available for menu items.
> 
> For example this kind of
> 
> $thisTime=gettimeofday();
> $thisTime=$thisTime['sec'];
> if ($this->conf['special.']['beforeCurrentTime']) {
> $extraWhere = ' AND pages.newUntil<='.$thisTime;
> }
> could be very desirable to set using hooks.
> Menus needs ofter *very specific* settings and TS just can't cover every
> needs.

Perhaps you can do this with:

http://typo3.org/documentation/document-library/references/doc_core_tsref/current/view/8/11/
#userdefined

;-)





More information about the TYPO3-dev mailing list