Hi, I'm new here. I have been browsing the forum to seek help regarding the display of Primary Links. I used Democratica as my sample template. The problem was when I used it, instead of the Primary Links displayed, they were replaced with the word "Array."

Is anyone out there patient enough to teach me or share with me the code to fix this problem? Thanks so much.

Comments

Chill35’s picture

Is Democratica a PHPTemplate engine-powered theme ?

If so, to display the primary links as a vertical list, use this code in your theme's page.tpl.php template :

print theme('links', $primary_links);

Caroline
A coder's guide to file download in Drupal
Who am I | Where are we
11 heavens

r0g’s picture

That's printing a horizontal list for me in Drupal 6, did the default orientation change? If so do you have any idea how I can get this list to display vertically? AFAIK unordered lists display vertically by default so I guess there's some css somewhere I need to override but I don't know where :-/

Sorry for reopening an old thread BTW.

Roger.

r0g’s picture

OK, Solved...

<?php print theme('links', $primary_links, '<br>') ?>

Seems to do the trick, can't decide whether that's the height of elegance or a terrible kludge yet but, woo! It works :)