Posted on: 11/29/04 12:16pm
By: frisco3
I have 2 separate, but related questions:
1) Is it possible to have a single page of my website appear with a different theme than the rest of the website (perhaps as a copy of my index.php), and
2) Is it possible for this alternate theme to be placed in a separate folder than the "layout" folder.
I am asking because I want the users of my website to be able to choose between 2 themes for most of the site, but I also want to set up a specific page on the site with an entirely different color scheme. The site is
acttour.com[*1] and I would like there to be a page for acttour.com/thunderroad.php (does not yet exist) that is specifically for the Thunder Road race track with Thunder Road colors (orange and green). Can this be done?
Advanced theme question
Posted on: 11/29/04 01:24pm
By: vinny
[QUOTE BY= frisco3]
1) Is it possible to have a single page of my website appear with a different theme than the rest of the website (perhaps as a copy of my index.php), and
2) Is it possible for this alternate theme to be placed in a separate folder than the "layout" folder.
[/QUOTE]
1) No, but I imagine it would be possible to hack something together that would fit what you need.
2) Same answer as above, but a bit more difficult.
As a possible (not tested) solution to 1) you can design thunderroad.php as follows:
<?php
require_once('/path/to/lib-common.php');
$_CONF['theme'] = 'name_of_alt_theme';
$ret = COM_siteHeader();
$ret .= "You stuff here";
$ret .= COM_siteFooter();
echo $ret;
?>
As I said 2) would take a bit more work (including possible changes to template.class.php).
-Vinny
Advanced theme question
Posted on: 11/29/04 02:04pm
By: Dirk
[QUOTE BY= frisco3] 1) Is it possible to have a single page of my website appear with a different theme than the rest of the website (perhaps as a copy of my index.php)[/QUOTE]
There's a hack that may help here (search for "chameleon"), or maybe the technique described
here[*2] would be enough.
bye, Dirk
Advanced theme question
Posted on: 11/29/04 08:18pm
By: frisco3
thanks for the input #1Dirk. I'll give something a try and let you know in a few days.