Page 1 of 1

Is there a shangeable site themes in CMS?

Posted: Mon Jan 16, 2006 1:05 pm
by jaketess
I'm running the latest CMS version 0.11.2 i think (scarborough)

I have another site that is running in another CMS. It has a dropwdown list of themes. I just select what I like and it changes the looks of my website.

Can CMS do that also?

Thanks in advance

Jake

Re: Is there a shangeable site themes in CMS?

Posted: Mon Jan 16, 2006 1:26 pm
by megabob3
jaketess wrote: I'm running the latest CMS version 0.11.2 i think (scarborough)

I have another site that is running in another CMS. It has a dropwdown list of themes. I just select what I like and it changes the looks of my website.

Can CMS do that also?

Thanks in advance

Jake
Yep can do.

create a new TAG, with only one code line, call it LOAD_CSS_BY_URL

echo '';




insert into your template {LOAD_CSS_BY_URL} between HEAD tag.

the dropwdown must be named "css_name" with a list values of CSS installedinto CMSMS from admin.

Bye ;)

Re: Is there a shangeable site themes in CMS?

Posted: Tue Jan 17, 2006 2:13 am
by jaketess
thanks megabob3

that was very helpful

:D

Re: Is there a shangeable site themes in CMS?

Posted: Tue Jan 17, 2006 3:01 am
by calguy1000
I thought I'd drop my 2 cents worth in also in this topic.

This technique is also useful for using cmsms css in another php app like phpsurveyor, etc.  and allows you to centralize the management of your css.

As well, with the theme manager module (available in the forge) it is possible to share the stylesheets and templates within cmsms sites by simply downloading and uploading an xml file.

Also, keep your eyes peeled for the upcoming cmsms themes site which will provide a central repository for sharable themes, and also be a knowledge base for tools and tehchniques for site design.

Re: Is there a shangeable site themes in CMS?

Posted: Tue Jan 31, 2006 5:08 pm
by centered effect
megabob3 wrote:
create a new TAG, with only one code line, call it LOAD_CSS_BY_URL

echo '';

insert into your template {LOAD_CSS_BY_URL} between HEAD tag.

the dropwdown must be named "css_name" with a list values of CSS installedinto CMSMS from admin.

Bye ;)
I did a search for stylesheet changers and this one seems simpler to use than the module on the forge.  Can you please explain further or give an example code for the last part of the "css_name" and the values listed.

I tried putting {LOAD_CSS_BY_URL} between the head tags, then I tried adding a new div (named css_name) with a href="/stylesheet.php?name='color'" but I get nothing. 

Thanks alot!