Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By hayesr on
How do I get access to links in, say block.tpl.php? What I want to do is spit out something along the lines of:
<ul id="nav">
<li id="nav-link-1"><a href=<?php print "$link['url']"; ?> <?php print "$link['description']" ?></li>
</ul>
I'd probably preface this with something like
<?php if ($block->module == 'menu' && $block->delta == '46' ) : ?>.
So my end goal is to display the link description after the link itself. (ala www.saugus.k12.ca.us)
I've heard some really cool things about links in Drupal 4.8, but is what I'm after possible now?
Thanks for your help.