$primary_links array
hoffi - January 7, 2008 - 13:19
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.

How to do the detective work
When working with template development, print_r is your friend:
<?php
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."
That's great. However what
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
you have done it or not?
you have done it or not? Where did say how? I too wish to do so