Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Themes

Discuss SilverStripe Themes.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Allowing clients to customize color schemes...


Reply

3 Posts   1941 Views

Avatar
huskyseehuskydo

24 January 2009 at 6:43am Community Member, 3 Posts

Hello!

I am a newbie, and was wondering if anyone knows of a plugin or module that will allow my client to change color schemes within the theme. I'm looking for something that the client can access through the CMS. The client does not know coding, so she will not be able to customize the theme that way. I will also create a thread in the "Customizing the CMS" forum as well.

Thanks in advance!

Avatar
dio5

24 January 2009 at 7:32am Community Member, 501 Posts

Hi,

one way to do this would be to have a dropdown in the cms where you let the user select a few colors, eg red, blue, grey etc...

This value would be saved in a field called $ColorScheme.

You could then add this value as a css-class to the body tag or whatever and based on that you could add different possible css-styles for every possible '$ColorScheme'.

Avatar
mccarville

4 February 2009 at 7:55am Community Member, 32 Posts

My thoughts are similiar to dio5... I would give the user a dropdown to select a theme from the CMS, and then write custom themes with different color schemes.

There is a atutorial in the thread below:
http://www.silverstripe.org/releases-and-announcements/show/252657