It's possible. I played around a bit by adding another column in the DB
for something I called: "page specialization." then, every time it
calculated the location of theme.tpl, I calculated:
$specialization.theme.tpl instead if $specialization wasn't an empty
string.
I could imagine going further and looking in $specialization/theme.tpl
as well to create the ability to subclass a theme to let the designer
replace bits and pieces of a theme, like
$specialzation/page/default.tpl, as needed.
Right now, I am playing with webgui (plainback software) and it handles
this case out of the box, but I am still struggling to put editible
regions onto the page.
I think webgui has a better model, but I've only used it for a short
time.
The "contentEditible" system worked the fastest, and was simple. It's
flaw: it applied the edits directly to the page rather than a database.
Good luck!
From: Greg Meiste <cap...@ya...>
To: php...@li...
Subject: [Phpwebsite-developers] Multiple themes for one site
Reply-To: php...@li...
--0-532964524-1086732130=:57659
Content-Type: text/plain; charset=us-ascii
Hello everyone,
I've got a client who wants to have a different look to a few sections
of a website I'm helping create for them. I had wanted to use
phpwebsite for this site, but now I'm not sure if I can. I had thought
about using branches to achieve the multiple themes, but I don't think
that's going to work because branches can't share data.
I remembered Wendall's W3C theme, but that appears to just change the
stylesheet and not the layout. (Yes, unfortunately, they want a layout
change as well.)
Has anyone played around with this idea? I don't know if I could do
fancy things in the theme.php file to help achieve this for them. I was
just throwing this question out there to see if others have tried this
or know of how this is possible.
I pretty sure you're going to tell me that I'm up a creek without a
paddle, but I figured it's worth a shot.
Thanks in advance!
Greg
|