Page 1 of 1

1 Css to apply home page layout different from its subpages?

Posted: Fri Mar 14, 2008 8:26 am
by adibgb
Hi guys. very new here, did a few easy templates and now im stuck with one.

basically i wud like the home page to have a '3-white column' layout while its subpages
will have '2-white and brown column' layout.

the only way i can do this is to make the article static in joomla preformatted with the coloured columns.
but that would defeat the purpose for having joomla..

do i need to have multiple css or a javascript to call the different layouts?
currenly i have no idea even after reading thru some css samples.

ive also seen samples using <?php echo $showRightColumn ? 'contentarea2' : 'contentarea'; ?>
and jdoc:include components to achieve this.

can anyone help guide me? :(
much appreciated thnx.

Re: 1 Css to apply home page layout different from its subpages?

Posted: Fri Mar 14, 2008 2:21 pm
by Rogue4ngel
You can create 'collapsable' columns, that would allow you to accomplish what you are looking for. It's a mix of css and php coding.

Here's a good article that details it a bit:
http://www.webreference.com/authoring/s ... index.html

If you just want to have the same columns, but different styles, I am sure you could have multiple templates loaded, and then have to code which one is used depending on the page displayed?

That I wouldn't know how to do that, but I would suspect there is a way.

Re: 1 Css to apply home page layout different from its subpages?

Posted: Sat Mar 15, 2008 2:36 am
by adibgb
i dun understand 'collapsing column'.. cud u explain this?

but thanks to ur link i think i can come up with a way to style certain modules
and so ill simply use a different module for the home page than the subpages
to show the difference . :)

Re: 1 Css to apply home page layout different from its subpages?

Posted: Sat Mar 15, 2008 9:15 pm
by Rogue4ngel
Yes, that would most likely be a good way to do it. Let me know how it works out.