Home page and other page not same theme. How ?
Hi, sorry for this possible stupid question: I need to create a theme where homepage use one theme and other page use another. For theme I intend the aspect that user see. In home page I have some blocks/regions, in the other page I have only one big block (for example). How can I do it ? RTFM are wellcome. M. -- Michel 'ZioBudda' Morelli michel@ziobudda.net Consulenza sistemistica in ambito OpenSource. Sviluppo applicazioni web dinamiche (LAMP+Ajax) Telefono: 0200619074 Telefono Cell: +39-3939890025 -- Fax: +39-0291390660 http://www.ziobudda.net ICQ: 58351764 http://www.ziobuddalabs.it Skype: zio_budda http://www.ajaxblog.it MSN: michel@ziobuddalabs.it JABBER: michel@gmail.com
On Thu, Dec 20, 2007 at 05:15:40PM +0100, Davide Michel 'ZioBudda' Morelli wrote:
In home page I have some blocks/regions, in the other page I have only one big block (for example).
I don't know how to use different themes on different pages. But controlling a block's appearence on different pages is quite easy. If you click the "configure" link (it is at the right of the block's name) in the block list page (admin/build/block) then you'll see the following: Show block on specific pages: [radio] Show on every page except the listed pages. [radio] Show on only the listed pages. [radio] Show if the following PHP code returns TRUE (PHP-mode, experts only). Pages: [textarea]
Rather than creating a separate theme for the front page, just create a different page template. Copy page.tpl.php (from your theme) to page-front.tpl.php and this template will affect only the front page. I've used this method on a few sites and it works great. On 12/20/07, Progga <proggaprogga@gmail.com> wrote:
On Thu, Dec 20, 2007 at 05:15:40PM +0100, Davide Michel 'ZioBudda' Morelli wrote:
In home page I have some blocks/regions, in the other page I have only one big block (for example).
I don't know how to use different themes on different pages. But controlling a block's appearence on different pages is quite easy. If you click the "configure" link (it is at the right of the block's name) in the block list page (admin/build/block) then you'll see the following:
Show block on specific pages: [radio] Show on every page except the listed pages. [radio] Show on only the listed pages. [radio] Show if the following PHP code returns TRUE (PHP-mode, experts only).
Pages: [textarea]
If you are wanting to use a different theme for a section, you can use Taxonomy Theme. It will display a different theme based on taxonomy or based on the path of the site. http://drupal.org/project/taxonomy_theme Brent On Dec 20, 2007, at 9:40 AM, floretan@gmail.com wrote:
Rather than creating a separate theme for the front page, just create a different page template.
Copy page.tpl.php (from your theme) to page-front.tpl.php and this template will affect only the front page. I've used this method on a few sites and it works great.
On 12/20/07, Progga <proggaprogga@gmail.com> wrote:
On Thu, Dec 20, 2007 at 05:15:40PM +0100, Davide Michel 'ZioBudda' Morelli wrote:
In home page I have some blocks/regions, in the other page I have only one big block (for example).
I don't know how to use different themes on different pages. But controlling a block's appearence on different pages is quite easy. If you click the "configure" link (it is at the right of the block's name) in the block list page (admin/build/block) then you'll see the following:
Show block on specific pages: [radio] Show on every page except the listed pages. [radio] Show on only the listed pages. [radio] Show if the following PHP code returns TRUE (PHP-mode, experts only).
Pages: [textarea]
_______________________________________________ themes mailing list themes@drupal.org http://lists.drupal.org/mailman/listinfo/themes
I think the taxonomy_theme module might be what you are looking for. -- Brett Evanson brettev@gmail.com -----Original Message----- From: themes-bounces@drupal.org [mailto:themes-bounces@drupal.org] On Behalf Of Davide Michel 'ZioBudda' Morelli Sent: Thursday, December 20, 2007 9:16 AM To: A list for theme developers Subject: [themes] Home page and other page not same theme. How ? Hi, sorry for this possible stupid question: I need to create a theme where homepage use one theme and other page use another. For theme I intend the aspect that user see. In home page I have some blocks/regions, in the other page I have only one big block (for example). How can I do it ? RTFM are wellcome. M. -- Michel 'ZioBudda' Morelli michel@ziobudda.net Consulenza sistemistica in ambito OpenSource. Sviluppo applicazioni web dinamiche (LAMP+Ajax) Telefono: 0200619074 Telefono Cell: +39-3939890025 -- Fax: +39-0291390660 http://www.ziobudda.net ICQ: 58351764 http://www.ziobuddalabs.it Skype: zio_budda http://www.ajaxblog.it MSN: michel@ziobuddalabs.it JABBER: michel@gmail.com _______________________________________________ themes mailing list themes@drupal.org http://lists.drupal.org/mailman/listinfo/themes No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.503 / Virus Database: 269.17.4/1189 - Release Date: 12/18/2007 9:40 PM No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.516 / Virus Database: 269.17.5/1191 - Release Date: 12/20/2007 2:14 PM
If what you want is a simple HTML presentationa page you can use http://drupal.org/project/front Or place Drupal on a subfolder /drupal/ and use a html index.html on / -----Mensaje original----- De: themes-bounces@drupal.org [mailto:themes-bounces@drupal.org] En nombre de Davide Michel 'ZioBudda' Morelli Enviado el: dijous, 20 / desembre / 2007 17:16 Para: A list for theme developers Asunto: [themes] Home page and other page not same theme. How ? Hi, sorry for this possible stupid question: I need to create a theme where homepage use one theme and other page use another. For theme I intend the aspect that user see. In home page I have some blocks/regions, in the other page I have only one big block (for example). How can I do it ? RTFM are wellcome. M. -- Michel 'ZioBudda' Morelli michel@ziobudda.net Consulenza sistemistica in ambito OpenSource. Sviluppo applicazioni web dinamiche (LAMP+Ajax) Telefono: 0200619074 Telefono Cell: +39-3939890025 -- Fax: +39-0291390660 http://www.ziobudda.net ICQ: 58351764 http://www.ziobuddalabs.it Skype: zio_budda http://www.ajaxblog.it MSN: michel@ziobuddalabs.it JABBER: michel@gmail.com _______________________________________________ themes mailing list themes@drupal.org http://lists.drupal.org/mailman/listinfo/themes __________ Informacisn de NOD32, revisisn 2738 (20071220) __________ Este mensaje ha sido analizado con NOD32 antivirus system http://www.nod32.com
Hi, I also suggest you to use panels for a different block layout with page-front.tpl.php. It'll make the front page really different from the other pages. Panel http://www.drupal.org/project/panels For using panels effectively you should be using views modules as well. views http://www.drupal.org/project/views Geshan On Dec 21, 2007 12:53 AM, Marolijo - Pol maresma <marolijo@yahoo.es> wrote:
If what you want is a simple HTML presentationa page you can use http://drupal.org/project/front Or place Drupal on a subfolder /drupal/ and use a html index.html on /
-----Mensaje original----- De: themes-bounces@drupal.org [mailto:themes-bounces@drupal.org] En nombre de Davide Michel 'ZioBudda' Morelli Enviado el: dijous, 20 / desembre / 2007 17:16 Para: A list for theme developers Asunto: [themes] Home page and other page not same theme. How ?
Hi, sorry for this possible stupid question: I need to create a theme where homepage use one theme and other page use another. For theme I intend the aspect that user see. In home page I have some blocks/regions, in the other page I have only one big block (for example).
How can I do it ? RTFM are wellcome.
M.
-- Michel 'ZioBudda' Morelli michel@ziobudda.net Consulenza sistemistica in ambito OpenSource. Sviluppo applicazioni web dinamiche (LAMP+Ajax) Telefono: 0200619074 Telefono Cell: +39-3939890025 -- Fax: +39-0291390660
http://www.ziobudda.net ICQ: 58351764 http://www.ziobuddalabs.it Skype: zio_budda http://www.ajaxblog.it MSN: michel@ziobuddalabs.it
JABBER: michel@gmail.com
_______________________________________________ themes mailing list themes@drupal.org http://lists.drupal.org/mailman/listinfo/themes
__________ Informacisn de NOD32, revisisn 2738 (20071220) __________
Este mensaje ha sido analizado con NOD32 antivirus system http://www.nod32.com
_______________________________________________ themes mailing list themes@drupal.org http://lists.drupal.org/mailman/listinfo/themes
-- Geshan Manandhar http://geshan.blogspot.com Supporting FOSS @ fossnepal.org www.HAMROLYRICS.COM
I've seen a bunch of responses to this, but as far as I have seen none have suggested the most obvious solution... Create a file in your template directory named page-front.tpl.php .sander Davide Michel 'ZioBudda' Morelli wrote:
Hi, sorry for this possible stupid question: I need to create a theme where homepage use one theme and other page use another. For theme I intend the aspect that user see. In home page I have some blocks/regions, in the other page I have only one big block (for example).
How can I do it ? RTFM are wellcome.
M.
participants (8)
-
Brent Hardinge -
Brett Evanson -
Davide Michel 'ZioBudda' Morelli -
floretan@gmail.com -
Geshan Manandhar -
Marolijo - Pol maresma -
Progga -
sander-martijn