Hello everyone,
I am trying to create a homepage that is only based on a mission image at the top and some blocks underneath. Since I do not need any content, I was trying to think on different ways to approach this. I am not sure how to override only an specific node template that will act as homepage so I thought I could override it creating an empty panel. The problem is that now the distance between the mission image and the first set of blocks is too big because there is some space created by the empty panel as well as by the content even when neither have any content inside.
I tried decreasing the padding of the regions that appear after the mission but then that affects all the pages so not really a great solution.
Does anyone have any other idea on how to approach this without writing code? Maybe there is a module to do this?.
Thanks
Comments
page-front.tpl.php
If it's just for homepage, i guess you can create page-front.tpl.php, inside you just don't print the $content variable.
Attitude is mind's paintbrush, it can color anything.
Re:page-front.tpl.php
Thanks a lot.
I thought that could be one option. I will explore it more. And what happens if I want to have two home pages based on the user's role?.
Thanks again
Raul
raulcaceres.me
you could...
you could always have different blocks on the home page with different role visability settings.
~silverwing
_____________________________________________
MisguidedThoughts | showcaseCMS
Re:blocks
Thanks
yes, the problem is not actually with the visibility of the blocks but with the empty space left by the content region of the template if there is not any content but blocks. Any other idea?
Raul
raulcaceres.me
=-=
you can also investigate the panels.module and create a panels page with blocks.
Re:Panels
That was my first approach but it just seemed easier to theme the blocks than altering the panels theming from how they come in D6.
Raul
raulcaceres.me
I have done what you ask for
I have done what you ask for i think.
I created a page with page-node-id.tpl.php and removed the $content and set this as my homepage. But in my page.tpl.php $content is there since this is needed in several places.
In my page-node-id.tpl.php i called out blocks manually since i wanted to style them.
This is how i did it with my blocks created with Views 2:
Re: node-id
Thanks.
I tried first using page-front.tpl.php but it did not work as the space was still there. I feel that maybe it has also something to do with the padding of the section after it. What I will try next is to do something like what you propose by using the mission image as a block rather than as a image in the mission.
I will try that
Raul
raulcaceres.me