By mountaineer on
I'm working on a custom home page and don't want any page/story content on the page. Is it possible to manually pull blocks out and create a custom page-front.tpl.php file? So far, what I've done is:
- Create a blank story and promoted it to the front page.
- Create custom theme regions in theme.info (content-left, content-center, and content-right in my case)
- Then assign a set of blocks to be only and within these custom theme regions
- Render custom theme regions of "is_front" checks in page.tpl.php
I'm getting close, but curious about the ability to manually render individual blocks instead? And how to create a "block-only" page?
Comments
or try...
in your custom page-front.tpl.php remove the call for $content and you shourldn't need a blank page
promoted to the front.
~silverwing
_____________________________________________
Land of Midnight | MisguidedThoughts | showcaseCMS
The fog is clearing
Thanks silverwing, that cleared it up. I was trying too hard to figure out how to separate blocks from the $content, but now it's obvious to create one more custom region for the blocks that would go in $content and then remove $content from page-front.tpl.php just like you pointed out. Perfect.
Or use the Panels module.
Or use the Panels module. Create a panel, fill it with blocks, set it as the front page.
Great
I'll check out Panels, thanks for the tip. Looks like it hasn't been ported to 6 yet though. I was aiming to get going on 6, maybe I should've stuck with 5.