Community & Support

display description of cck textfield in menu block

Hello,

I'm looking for a way to show a textual description under some of my menu items. I've tried to show the attributes.title but no success so far.

-----
function MyThemeName_menu_item_link($link) {
if (empty($link['localized_options'])) {
$link['localized_options'] = array();
}

//print_r($link['localized_options']['attributes']['title']);

return l($link['title'], $link['href'], $link['localized_options'], $link['localized_options']['attributes']['title']);

}
-----
$link['localized_options']['attributes']['title'] gives me the information I need but I don't know how to output that in a div

---

So I tried CCK . I've succesfully added a description_field to my pages. How do I output the description_field to the links of my menu block?

I'm kinda lost here, if anybody can help I would be very grateful.

Thanks,

Gus

Comments

I'm in the same situation...

Hi guusvandewal,

I've got the same problem. Have you managed to fix it?
If so, could you please tell me how you did it?

Many thanks in advance.

Hi, in short. I used views2

Hi,

in short. I used views2 to output my menu items. I still have to work out the code.

A solution can be found

A solution can be found here

http://drupal.org/node/640780#comment-2306258