[TYPO3] How to include the rel attribute in my TS Menu

Marfolo typo3-english at lists.netfielders.de
Tue Jan 9 14:20:47 CET 2007


Hi, 
I want to include the "rel" attribute in the href tag of a typoscript menu, but I don't know how. I try to find the correct syntax for the "rel" attribute, but I cannot find it.  Could someone help me?

Here's for example the typoscript menu 

special = userfunction 
special.userFunc = user_test->makeMenuArray 
special.page = id 
special.href = link 
special.title = title 
1 = GMENU 
1.NO { 
wrap = <td width='74' height='22'>|</td><td width='2'> </td> 
XY = [4.w], [4.h] 
4 = IMAGE 
4.file = normal.gif 
} 
1.RO = 1 
1.RO { 
wrap = <td width='74' height='22'>|</td><td width='2'> </td> 
XY = [4.w], [4.h] 
4 = IMAGE 
4.file = rollover.gif 
} 
1.CUR = 1 
1.CUR { 
wrap = <td width='74' height='22'>|</td><td width='2'> </td> 
XY = [4.w], [4.h] 
4 = IMAGE 
4.file = current.gif 
noLink = 1 
} 
} 
menuBox = COA 

and the makeMenuArray() function 

function makeMenuArray($content,$conf) { 
$pageId = $conf['page']; 
$href = $conf['href']; 
$title = $conf['title']; 
$menu = array( 
array( 'title' => $title, 
'_OVERRIDE_HREF' => $href, 
'uid' => $pageId 
) 
); 
return $menu; 
} 
}


More information about the TYPO3-english mailing list