Before I start, thanks for all of your hard work on this module.

I'm having trouble getting my primary links to show on my front page. It's a "full" front page replacement, not themed.

I've tried using the "display the contents of a block in any location", but the markup that gets put out is rendered like the "regular" navigation and not the primary link navigation. (For example, the classes and ID's are given the regular menu names rather than the ones I've specified for the primary nav in my page template.)

Is there a way to display the primary links as if I was displaying them in my regular page template?

Furthermore, I realize that page snippets have to be used in conjunction with the front page module, but just how many of the php calls from the typical page templates work with the front page module? It seems like some of them do.

Thanks again for your help and time!

Comments

jo1ene’s picture

I ran into this too. This:

print theme('links', $primary_links, array('class' => 'links', 'id' => 'navlist'))

Doesn't seem to work even though I have the checkbox for "Allow embedded PHP code in this front page" checked. This si the first time that I have tried to use php in the front_page module, and I can't seem to get anything to work but this snippet:

print node_page_default();

nevets’s picture

This may help, not sure primary links is defined in the context your code is in. You could try

<?php
$primary_links = menu_primary_links();
print theme('links', $primary_links, array('class' => 'links', 'id' => 'navlist'))
?>
jo1ene’s picture

Yeah, that's it:

print theme('links', menu_primary_links(), array('class' => 'links', 'id' => 'navlist'))

..works as well. The fact that certain things are not declared or available is just not very well documented. And it just wasn't coming to me so late at night. Thank's for your help and I hope this leads someone else in the right direction.

dublin drupaller’s picture

Status: Active » Closed (fixed)