[TYPO3] USERDEF1 for following pages of current page
    Alex Kohlmeyer 
    emahl at gmx.de
       
    Fri Jun 29 13:58:18 CEST 2007
    
    
  
Hi,
I'd like to solve the following problem:
All following pages of the current page (menu state "CUR")
should be assigned to the menu state "USERDEF1".
I'd really appreciate your help.
Bye!
Alex
PS:
This PHP code on a similar topic may help you perhaps:
(replaces missing CURIFSUB [has been once a typo3 bug]:
-------------------------------------------------------
<?php
class user_itemArrayProcFunc {
    function curifsub($menuArr,$conf)    {
        // Enable the USERDEF1 menustate as a replacement for the missing CURIFSUB menustate.
        // Usage: In your TMENU/GMENU object insert this line:
        //        itemArrayProcFunc = user_itemArrayProcFunc->curifsub
        while(list($k,$v)=each($menuArr))    {
            if ($conf["parentObj"]->isItemState("IFSUB",$k) && $conf["parentObj"]->isItemState("CUR",$k))
                $menuArr[$k]["ITEM_STATE"]="USERDEF1";
        }
        return $menuArr;
    }
    
}
?>
-- 
Ist Ihr Browser Vista-kompatibel? Jetzt die neuesten 
Browser-Versionen downloaden: http://www.gmx.net/de/go/browser
    
    
More information about the TYPO3-english
mailing list