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
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
Comment #1
jeremycaldwell commentedIf 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.
Comment #2
eft commentedOk thanks for the tips.
Comment #4
Samsoe commentedI 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
Comment #5
gmclelland commentedsubscribing
Comment #6
jeremycaldwell commentedNot 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?
Comment #7
gmclelland commentedJust 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
Comment #8
jeremycaldwell commentedThere 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.
Comment #9
gmclelland commentedSo 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
Comment #10
stephthegeek commentedNot 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.
Comment #11
hixster commentedYou can use the delta module to do this now.
Comment #12
Poieo commented