<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.5921" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Hi,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I'm new on Drupal and I would like to know how can
I make properly such comment on items Menu please ?</FONT></DIV>
<DIV><FONT face=Arial size=2> -> each first row is a link and each 2nd
row is a comment...</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>- Menu 1</FONT></DIV>
<DIV><FONT face=Arial size=2> (my explanation)</FONT></DIV>
<DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>- Menu 2</FONT></DIV>
<DIV><FONT face=Arial size=2> (other explanation ...)</FONT></DIV>
<DIV><FONT face=Arial size=2>...</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>The only solution i've found is to do that
(below)... but i'm sure it's not a property way...</FONT></DIV>
<DIV><FONT face=Arial size=2>- the only constraint i have is to have the
abbility to get the Description field in the underlying menu to display a
dynamic comment.</FONT></DIV>
<DIV><FONT face=Arial><FONT size=2>but actually, the only trick I've found to
get the Description is to parse the HTML string to retrieve the "<SPAN
class=attribute-name>title" tag to get my text.</SPAN></FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT size=2><SPAN class=attribute-name>Not very cool, i
think...</SPAN></FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT size=2><SPAN class=attribute-name>- actually, to
determine the underlying nodes menu, i'm testing her names... is there another
way to do that ?</SPAN></FONT></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Can you help me please ?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Regards</FONT></DIV>
<DIV><FONT face=Arial size=2>Cédric</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>function myTheme_menu_item(</FONT><FONT face=Arial
size=2>$link, $has_children, $menu = '', $in_active_trail = FALSE, $extra_class
= NULL) {<BR> $class = ($menu ? 'expanded' : ($has_children ? 'collapsed'
: 'leaf'));<BR> if (!empty($extra_class)) {<BR> $class
.= ' '. $extra_class;<BR> }<BR> if ($in_active_trail)
{<BR> $class .= ' active-trail';<BR> }<BR> $css_id
= strip_tags($link);<BR> </FONT></DIV>
<DIV><FONT face=Arial size=2> // test the node for which i want to
add comment<BR> if (stripos($link, 'MyMenu1') > 0 || stripos($link,
'MyMenu2') > 0) {<BR> $rec =
'title="';<BR> $i = stripos($link,
$rec);<BR> if ($i > 0)
{<BR> $j = strpos($link, '"',
$i+strlen($rec));<BR> if ($j >
0)<BR> $title = substr($link,
$i+strlen($rec), $j-$i-strlen($rec));<BR> } <BR>
}<BR> <BR> $title = ($title != "") ? '<div
class="views-field-created"><h0>&nbsp;&nbsp;&nbsp;&nbsp;['
. $title . ']</h0></div>' : '';<BR> return '<li class="'.
$class .'">'. $link . $menu ."</li>\n" .
$title;<BR>}<BR></DIV></FONT></DIV></BODY></HTML>