The theme I'm using uses $is_front to assign a larger header section to only the front page. I have enabled the front page module and set it to "Full" and have input my custom HTML and CSS. Going to the site root shows the new page as it should and then I have a link to www.mysite.com/node on that page (that's also what my Home redirects are set to). If I go to that page the regular header appears, so it basically isn't seeing it as the front page. It's as if it is looking for mysite.com/front_page, but that page is the splash page. My workaround that seems to be doing the job well enough is replacing $is_front with "(arg(0)=='node')". That works for me, but, I'm wondering if that's how it's supposed to be or am I doing something wrong? The breadcrumb issue seemed to be similar to what I'm trying to do but his fix would seemingly be different than this.

Obviously not a critical issue since I seem to have worked around it, but I thought this was supposed to work with $is_front. Thanks.

Comments

Phillip Mc’s picture

I stand corrected, but, I think $is_front is set in the theme('page', $output) function so when you override that by switching to FULL...it's not set.

As an alternative, what you can do is create a page-front.tpl.php to assign a larger header section, just to your front page and use THEMED in the front page module settings page instead of using the FULL option.

butler360’s picture

That sounds like an interesting way of doing it, but it sounds like more work. I may be wrong about that, though. I'm pretty new with Drupal.

I also read that there's a default View that will duplicate the functionality of the default home page. So could I also then put some if $something argument in the theme to set it to where it sees a View as the front page? And what would that be? Right now using (arg(0)=='node') mostly works but on certain pages that are aliased it still appears to read the url as, say, site.com/node/14 so it shows up with the larger header.

Dublin Drupaller’s picture

Status: Active » Closed (fixed)

the page-front.tpl.php solution is probably the simplest way forward for you with the least amount of work.

agileware’s picture

Status: Closed (fixed) » Closed (won't fix)

This should be marked won't fixed if it isn't going to be fixed.

- or by design if it is an unavoidable side effect of the module.