[Typo3] Special page types in navigation

tapio tapio.markula at dnainternet.net
Thu May 12 19:22:01 CEST 2005


Hi

I tried to make a function in order to set USERDEF1
so that when page type is 'External URL' or 'Shortcut'
by using USERDEF1 it would be possible to set them linkstate:


	
function specialLinks($menuArr,$conf)    {
         // Usage: In your TMENU/GMENU object insert this line:
         // itemArrayProcFunc = user_itemArrayProcFunc->specialLinks
         while(list($k,$v)=each($menuArr))    {
             if ($menuArr[$k]['doctype']==3 || 
$menuArr[$k]['doctype']==4) $menuArr[$k]["ITEM_STATE"]="USERDEF1";
         }
         return $menuArr;
     }

But that function doesn't do anything - I tested with another function.
and USERDEF1 itself worked fine.



More information about the TYPO3-english mailing list