By zigx on
Hi All,
Currently i am able to print out a list of my primary_links (taxonomy terms) by doing this
<div id="nav-primary" class="clearfix">
<?php if (is_array($primary_links)) : ?>
<ul id="maintab">
<?php foreach ($primary_links as $link): ?>
<li><?php
$href = $link['href'] == "<front>" ? base_path() : base_path() . drupal_get_path_alias($link['href']);
print "<a href='" . $href . "' onmouseover='showTab( " . $link['title'] .")'>" . $link['title'] . "</a>";
?></li>
<?php endforeach; ?>
</ul>
<?php endif; ?>
That works beautifully....
My trouble is that i would also like to do print out some of the children of these terms but i cant seem to figure out how to do this.
My initial thought was do something like foreach of the primary links do a for each on it's children but it looks like ive only got access to:
[attributes] => Array
(
[title] =>
)
[href] => taxonomy/term/8
[title] => Title
Do i have any options? thanks so much for your time.
Comments
anyone? thank you!
anyone? thank you!