[support] Themed frontpage without $sidebar_right

Laura Scott laura at pingv.com
Mon Mar 12 19:19:39 UTC 2007


There are php snippets for this kind of thing in the handbook.

If this is too technical, then you might look at the panels module,  
which provides a gui for picking and choosing what blocks you display.

Laura

On Mar 12, 2007, at 12:48 PM, Mattias Hällkvist wrote:

> Ok, thanks. But what php code do I use to print a specified block?
>
> Thanks!
> /Mattias
>
> On 3/12/07, Larry Garfield < larry at garfieldtech.com> wrote:
>
> Each block is just a div.  Use CSS to float them left/right, or  
> some other "sideways" method of your choice.
>
> In theory I suppose you could make each a table cell in  
> block.tpl.php and then wrap them in a row/table in the page  
> template, but that would get extremely ugly extremely fast and I  
> don't recommend it. :-)
>
> --Larry Garfield
>
> On Mon, 12 Mar 2007 19:01:14 +0100, "Mattias Hällkvist"  
> <mattiasha at gmail.com> wrote:
> > Thanks! I used page-front.tpl.php and it works great.
> >
> > Although I'd like to have the blocks be side by side on the front  
> page but
> > the blocks get put ontop of eachother. How do I make them side by  
> side on
> > the front-page?
> >
> > Cheers!
> > /Mattias
> >
> > On 3/12/07, Larry Garfield <larry at garfieldtech.com> wrote:
> >>
> >>
> >> Just check the $is_front variable, which is set on any  
> page.tpl.php (or
> >> derivative) template.  That's much more stable than checking the  
> URL
> >> directly.
> >>
> >> Alternatively, use page-front.tpl.php, which automatically gets  
> used for
> >> the front page in place of the normal page.tpl.php.  Then simply  
> omit
> > the
> >> $sidebar_right statement entirely.
> >>
> >> --Larry Garfield
> >>
> >> On Mon, 12 Mar 2007 15:16:53 +0100, "Mattias Hällkvist" <
> >> mattiasha at gmail.com> wrote:
> >> > I'm trying to set different front page for anonymous and  
> authenticated
> >> > users
> >> > using the front page module < http://drupal.org/project/ 
> front>. I'd
> > like
> >> > the
> >> > frontpage to have the header but not the right sidebar. In
> > page.tpl.php
> >> > the
> >> > right sidebar is defined as $sidebar_right. So I thought that  
> I could
> >> add
> >> > code to check if the url is domain.com/front_page and then not  
> print
> >> > $sidebar_right. Or some other solution that doesn't print the  
> right
> >> > sidebar
> >> > on the front_page.
> >> >
> >> > I'm a php novice but I'm learning.. I appreciate any help I  
> can get.
> >> >
> >> > Thanks!
> >> > /Mattias
> >> >
> >> >
> >>
> >> --
> >> [ Drupal support list | http://lists.drupal.org/ ]
> >
> >
>
> --
> [ Drupal support list | http://lists.drupal.org/ ]
>
> -- 
> [ Drupal support list | http://lists.drupal.org/ ]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.drupal.org/pipermail/support/attachments/20070312/b50433cc/attachment.htm 


More information about the support mailing list