Hi,

I'm wondering what the best technique is to create a distinct front page with the Fusion theme. ie should I use page-front.tpl.php or there a better method? Promoting a node to get rid of the Welcome to... text seems like an awkward kludge.

Tx

Comments

jeremycaldwell’s picture

Status: Active » Fixed

If you want to change the layout or something that can only be done in the tpl you can copy the existing theme's "page.tpl.php" and rename it to "page-front.tpl.php". If your sub theme doesn't include a "page.tpl.php" copy the one from Fusion and then make your changes there and to the newly created "page-front.tpl.php" as needed.

So for changing the "Welcome to.." text that's just a node promoted to the front page. So you can create a new node with your homepage text and then set it to be the homepage on the Site Information page. Lot's of things you can do there with just node content and blocks.

eft’s picture

Ok thanks for the tips.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

Samsoe’s picture

Title: Please recommend best technique for separate front page with Fusion? » Different Sidebar Width For Front Page

I want different sidebar width for page-front.tpl.php and page.tpl.php, so I just rename $sidebar_first and $sidebar_last ? Example:
print theme('grid_row', $sidebar_first, 'sidebar-first', 'nested', $sidebar_first_width);
TO
print theme('grid_row', $frontsidebar_first, 'sidebar-first', 'nested', $sidebar_first_width);

And where can I change my "frontsidebar_first" width ? Should I add new region in theme.info file too ?

Sorry, I really confused here

gmclelland’s picture

subscribing

jeremycaldwell’s picture

Assigned: Unassigned » jeremycaldwell
Status: Closed (fixed) » Postponed (maintainer needs more info)

Not sure I follow here.. do you want a different width for the sidebar first region on the homepage? Something like 300px wide on homepage and then 180px on all other pages?

gmclelland’s picture

Just like @Samsoe I was wondering how to change the sidebar width and sidebar layout when creating custom page templates?

Ex. On my homepage I would like sidebars split layout and on my inner pages I would like both sidebars on the right. How could I do this and also specify different sidebars widths for the homepage and inner pages?

Thanks

jeremycaldwell’s picture

There isn't a way I know of to get your homepage sidebars to appear one way and on the inner pages another way, sorry. Might want to take a look at Panels instead since that gives you more control over the content placement with context as that sounds like it work best in this situation.

gmclelland’s picture

So in Fusion, there is no manual overrides like in the Genesis theme? ex. http://drupal.org/node/476994 - Theming Sections

I will look into Panels some more. Thank you

stephthegeek’s picture

Assigned: jeremycaldwell » Unassigned
Status: Postponed (maintainer needs more info) » Postponed

Not for widths. But this is a fairly common request and the updates to the layout approach in D7 will make it possible, of which we may be able to backport some to D6.

We've had a couple of people mention doing something like this or using different grids, but I don't know the details of how they did it. The calculations happen behind the scenes so it's not as simple as creating a new region.

Another possible option is to use postscript/preface regions instead. Hide your $content and use different regions to build a multi-column layout.

However, changing the column order is easy -- just override the floats in CSS, eg. float your .sidebar-first right. You can use the front page body class to target it just for that page.

hixster’s picture

You can use the delta module to do this now.

Poieo’s picture

Issue summary: View changes
Status: Postponed » Closed (works as designed)