style changer

Use GitHub to post feature requests for phpwcms.
Locked
sean
Posts: 30
Joined: Fri 28. May 2004, 09:09

style changer

Post by sean »

Hi again :D,

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. :)
Image
Peekay
Posts: 286
Joined: Sun 25. Jul 2004, 23:24
Location: UK

Post 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. 8)
rk
Posts: 162
Joined: Sat 24. Apr 2004, 23:48
Location: Hannover, Germany
Contact:

Post by rk »

Peekay wrote:However there is no 'one-click' method for a user to select a site-wide theme... AFAIK. 8)
Thats not fully right ;-).

If you ONLY use CSS you can use something like
http://www.alistapart.com/articles/phpswitch/.
Ralf
Peekay
Posts: 286
Joined: Sun 25. Jul 2004, 23:24
Location: UK

Post 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? :roll:
rk
Posts: 162
Joined: Sat 24. Apr 2004, 23:48
Location: Hannover, Germany
Contact:

Post 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.
Ralf
Peekay
Posts: 286
Joined: Sun 25. Jul 2004, 23:24
Location: UK

Post 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.
Locked