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.
on the demo site primary links works but on the tarball.
quick fix for those who can not get primary links work on page.tpl.php
change
<?php if (is_array($secondary_links)) { ?>
<?php $i = 0;foreach ($secondary_links as $link) : if ($i==0) {?>
<?php
} else {?>
<?php
}?><?php print $link ?>
<?php $i++;
endforeach; ?>
<?php } ?>
to
<?php if (is_array($primary_links)) { ?>
<?php $i = 0;foreach ($primary_links as $link) : if ($i==0) {?>
<?php
} else {?>
<?php
}?><?php print $link ?>
<?php $i++;
endforeach; ?>
<?php } ?>
its my quick fix but for both primary and secondary link work need a code review
Comments
Comment #1
nickl CreditAttribution: nickl commentedThis was already raised in a previous issue marking it as duplicate.
Only secondary links are supported at this point in time, until further notice.