[TYPO3] Could someone help me with rel attribute in my TS?

Marfolo typo3-english at lists.netfielders.de
Tue Dec 5 12:25:20 CET 2006


Hi, 
I want to include the "rel" attribute in the href tag of the following typoscript, but I don't know how. Can someone help me? 

Here's my 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'>&nbsp;</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'>&nbsp;</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'>&nbsp;</td> 
XY = [4.w], [4.h] 
4 = IMAGE 
4.file = current.gif 
noLink = 1 
} 
} 

menuBox = COA 
menuBox.wrap =<table width='100%' border='0' cellspacing='0' cellpadding='0'><tr><td width='20'>&nbsp;</td>|<td>&nbsp;</td></tr></table> 

and my 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; 
} 
} 


and an example of use: 

elementoMenu.special.page = {$page} 
elementoMenu.special.title = 'Information' 
menuBox.10< elementoMenu 
menuBox.10.1 { 
NO.wrap = <td valign='bottom' width='86' height='27'>|</td><td width='2'>&nbsp;</td> 
NO.4.file = uploads/tf/img/img_off.gif 
RO.wrap = <td valign='bottom' width='86' height='27'>|</td><td width='2' >&nbsp;</td> 
RO.4.file = uploads/tf/img/img_on.gif 
CUR.wrap = <td valign='bottom' width='86' height='27'>|</td><td width='2' >&nbsp;</td> 
CUR.4.file = uploads/tf/img/img_on.gif 
}


More information about the TYPO3-english mailing list