Applying a new StyleSheet

A place for discussion about skinning and design. Before posting questions here you should review the documentation about creating skins.

This thread is closed to new posts. You must sign in to post in the forums.
2/19/2009 8:33:19 AM
Gravatar
Total Posts 18

Applying a new StyleSheet

I'm adding a new feature, and I wanted to keep the styling isolated from the main site styling, therefore I have added a new stylesheet and added it to the Style.Config file in my chosen skin, but the stylesheet is not being attached. The stylesheet definitely exists in the skin folder, and I'm 100% certain that the selectors are set up correctly.

Is there some ohter trick I need to do to tell mojoportal framework to include my stylesheet?

 

 

2/19/2009 8:37:18 AM
Gravatar
Total Posts 18439

Re: Applying a new StyleSheet

You will need to clear the server cache by touching the Web.config or recycle the app pool, then clear the browser cache.

The stylesheet will not be attached, it will be combined into one request with all the other css files listed in style.config.

While you are designing its best to disable the caching by set these to false:

<add key="CacheCssOnServer" value="true" />
<add key="CacheCssInBrowser" value="true" />

but afterwards best to re-enable caching.

Hope it helps,

Joe 

2/19/2009 8:47:26 AM
Gravatar
Total Posts 18

Re: Applying a new StyleSheet

Unfortunately that didnt help.

I had both of those keys set to false anyway., and I've tried rebuilding AND an iisreset but all with the same result - no styling :(

Any other ideas?

2/19/2009 8:51:33 AM
Gravatar
Total Posts 18439

Re: Applying a new StyleSheet

You can set this to false:
<add key="MinifyCSS" value="true" /> 

Then view the source of the page, get the url for the ..csshandler.ashx?... and paste it into the browser and determine if it is in fact including your css.

Make sure you are doing all this in the skin folder actually being used /Data/Sites/[SiteID]/skins/[skinname]

Hope it helps,

Joe

You must sign in to post in the forums. This thread is closed to new posts.