display description of cck textfield in menu block

guusvandewal - June 30, 2009 - 11:00

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

I'm in the same situation...

netizzen - January 26, 2010 - 14:09

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

guusvandewal - February 7, 2010 - 17:56

Hi,

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

 
 

Drupal is a registered trademark of Dries Buytaert.