[TYPO3-dev] Cycling prev/next items in HMENU

Tobias Smolka tsmolka at gmail.com
Tue May 6 19:31:15 CEST 2008


Hello,

I was wondering if anyone knows some elegant way how to create "cycling" 
prev/next items in menu. I'd like to have the previous link on first 
page pointing to the last and on the last page have the next link 
pointing to the first.

In my current solution I was forced to add custom code in 
typo3/sysext/cms/tslib/class.tslib_menu.php:681

if (!isset($recArr['prev']) && 
$this->conf['special.']['items.']['prevLastIfEmpty']) $recArr['prev'] = 
$recArr['last'];

if (!isset($recArr['next']) && 
$this->conf['special.']['items.']['nextFirstIfEmpty']) $recArr['next'] = 
$recArr['first'];


Any ideas? Thanks in advance.




More information about the TYPO3-dev mailing list