I'm trying to work with the $primary_links array at the moment, thanks to posts on the forum and within the handbook. However I can not seem to find any reference to its contents apart from two attributes including:

$link['href']
$link['title']

I'd really like to be able to pull the description field out into my template.

Comments

yelvington’s picture

When working with template development, print_r is your friend:

print '<pre'> . print_r($primary_links,1) . '</pre>';

When the documentation lacks examples, this trick lets you inspect structured variables and figure out what to do.

I'm not sure what you mean by "the description field."

andrew_hoffi’s picture

That's great.

However what I thought would be contained within the $primary_links array is not. I'd like to call/print the description field that is completed when a menu item is created. Normally the content is displayed as the alt tag of the primary links on rollover. Can anyone help?

Dylunio creadigol. Syniadau dwyieithog. • Creative design. Bilingual ideas. www.hoffi.com

Thanks
Andrew
-------------------
www.hoffi.com

untitledds’s picture

you have done it or not? Where did say how? I too wish to do so