Theming

rated by 0 users
This post has 6 Replies | 3 Followers

Top 200 Contributor
Posts 118
Points 1,760
Mark Monica Posted: Tue, Apr 17 2007 2:42 PM

Ben,

In your articles you mention theming can be accomplished via copying the default theme to a new folder and voila, you have a new theme.

With the new default theme, you reference href's differently such as in the master.Master:

 ../style/Common.css is now ~/themes/default/style/Common.css

Doesn't this screw up the ability to "cheap" copy a theme when you reference URL this way?  Now to theme you have to go to each and every file and change all these references?  Why the change?

Mark

Top 50 Contributor
Male
Posts 536
Points 7,675

Mark, 

I noticed that last night as I actually ran into a problem when messing around with a theme.  I'm thinking it was an oversight by Telligent but could be mistaken.  the ../style/common.css still works so I don't think the change was done out of necessity. 

Top 10 Contributor
Posts 2,423
Points 19,635
MVPs
Nick replied on Tue, Apr 17 2007 6:07 PM

It prob just got coded that way when telligent recoded it

  • | Post Points: 5
Top 10 Contributor
Posts 3,424
Points 65,610
CS Developers
Ben Tiedt replied on Thu, Apr 19 2007 5:19 PM

mmonica:
Doesn't this screw up the ability to "cheap" copy a theme when you reference URL this way?  Now to theme you have to go to each and every file and change all these references?  Why the change?

This was done to *ensure* that when the "Default" or "Lean and Green" that the theme renders properly even if the user's site theme is not the expected theme (Default -> Default or Lean and Green -> Lean and Green).

I'll be updating my post on creating new themes soon (early next week) to include information related to this issue.

Ben Tiedt's Blog

  • | Post Points: 20
Top 200 Contributor
Posts 123
Points 1,780

Quick Question, is it possible for me to copy the default theme, rename it and play with it, without touching the default theme?

I tried copying the whole folder, edit theme.config (edited the name of the theme and the location of the files) but it seems the configuration doesn't apply when I choose the theme from my profile.

This is in CS 2007 (RTM) by the way. Thanks!

Jasper Jugan
  • | Post Points: 35
Top 200 Contributor
Posts 118
Points 1,760

Did you copy the "default" theme folder, rename the copied folder to something else (like "mytheme")?  Then you need to edit the theme.config, changing the xml node for theme (second line) title tag from "default" to your theme name.  By copying the default folder you in effect are making a new theme.  Once you rename it in both spots the theme is yours to mess with and will not mess up the standard default because that still exists in it's original folder.

Here is a link to Ben's original article on theming in CS2007. http://getben.com/archive/2007/02/15/creating-new-themes-in-cs2007.aspx 

jasperjugan:

Quick Question, is it possible for me to copy the default theme, rename it and play with it, without touching the default theme?

I tried copying the whole folder, edit theme.config (edited the name of the theme and the location of the files) but it seems the configuration doesn't apply when I choose the theme from my profile.

This is in CS 2007 (RTM) by the way. Thanks!

  • | Post Points: 5
Top 50 Contributor
Male
Posts 536
Points 7,675

jasperjugan:

Quick Question, is it possible for me to copy the default theme, rename it and play with it, without touching the default theme?

I tried copying the whole folder, edit theme.config (edited the name of the theme and the location of the files) but it seems the configuration doesn't apply when I choose the theme from my profile.

This is in CS 2007 (RTM) by the way. Thanks!

 

jasperjugan,

You are on the right path... however you need to make a few small modifications to the theme to make it independent.  Check out this from my blog.  Hopefully it helps point you in the right direction. Big Smile  Let me know if you have any questions and I'll be happy to help.

http://chumlyworldnews.com/blogs/twxztips/archive/2007/04/20/create-a-custom-theme.aspx 

Page 1 of 1 (7 items) | RSS
Powered by Community Server (Commercial Edition), by Telligent Systems

Copyright© 2008 Telligent Systems Inc. All rights reserved
CommunityServer.com  •  Telligent.com