Page 1 of 1
style changer
Posted: Tue 19. Oct 2004, 06:28
by sean
Hi again
,
I wanted to know if its possible/hard/easy to make a option for the users/visitors to pick different styles/templates for the site. Since I'm into web designing and constantly change my desing over a short period of time, I really want to keep all my templates and give my users an option to pick the one that they like,
thank you,
sean s.
Posted: Wed 20. Oct 2004, 02:33
by Peekay
PHPWCMS uses page templates to determine the page layout (header, footer, menus etc.) for each category in the site structure. You can use the same template for each category (set it as the default), or you could create different templates and allow users to choose.
You can format templates using the 'default' CSS file - frontend.css - which can be edited from within the program, or you can create additional CSS files and place them in:
phpwcms_template / inc_css /
You (or users) could then choose a different CSS file to control each template. With this combination, you could certainly provide the ability to select different page layouts and colour styles. However there is no 'one-click' method for a user to select a site-wide theme... AFAIK.
Posted: Wed 20. Oct 2004, 23:28
by rk
Peekay wrote:However there is no 'one-click' method for a user to select a site-wide theme... AFAIK.
Thats not fully right
.
If you ONLY use CSS you can use something like
http://www.alistapart.com/articles/phpswitch/.
Posted: Thu 21. Oct 2004, 21:48
by Peekay
That looks like a nice solution for a regular website rk, but could it switch the default CSS file(s) used by PHPWCMS?. I mean, can it write the external CSS file link into the head of a dynamically produced page?
Posted: Thu 21. Oct 2004, 23:35
by rk
If you use an empty default-file (frontend.css), then you can select it for the page
and write your own @import or link ... in "html head:"-field.
I haven't tested if php-code would be executed in that field.
Posted: Thu 21. Oct 2004, 23:59
by Peekay
I will try this as soon as I can and report back. Would be nice if it works.
Thanks for the link to the script.