0
votes

New to php and drupal. I set up drupal and trying to customize the zen theme. Also setup Netbeans for debuggin. Everything is fine, but the menu variables are not filled as expected.

In page.tpl.php, there is a condition, <?php if ($primary_links || $navigation): ?> , which prints main menu if evaluates true. I get primary_links empty, so the menu doesn't print. According to the css provided by the zen theme, below ids should be used for customization.

/*
 * Primary and Secondary menu links
 */
#main-menu {
}

#secondary-menu {
}

I may add style elements looking through firebug, but the above id may be the right place to do it. So, why primary link variable is empty for me?

thanks.

1

1 Answers

0
votes

The first thing that comes to mind is that, maybe, you haven't assigned anything to the primary links list. Have you?