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 Andrés Chandía on
I succeded in open primary links on a new browser windows (Reflection Theme)
my code on the /var/www/themes/reflection/page.tpl.php file was like this:
<ul id="primary">
<?php foreach ($primary_links as $link): ?>
<?php $i=$i+1; ?>
<?php if ($i==count($primary_links)) print ('<li class="last">');
else print ('<li>');
?>
<?php
print $link ?></li>
<?php endforeach; ?>
</ul>
i added this code on the second line of the above mentioned code ( i mean after <ul id="primary">
)
<?php $primary_links = str_replace( 'href', 'target="_blank" href', $primary_links); ?>
and that's it. I hope to help somebody.
Comments
example
see example on http://www.chandia.net/
@ch
There is a drupal
There is a drupal module:
http://drupal.org/project/menu_attributes
great solution
this looks great thanks
germancito