style.config problem

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.
8/17/2011 3:05:47 PM
Gravatar
Total Posts 2

style.config problem

Hi,

I want to have 2 skins with different layout.Master but want to use the same css across my skins and not have to maintain different copies of css files in each template.

I found the article on your site:

http://www.mojoportal.com/understanding-the-styleconfig-file.aspx

I created new folder for second template with layout.master, style.config, theme.skin and favicon.ico

I have modified style.css to:

<file>/Data/Sites/1/skins/netplan-glowna/style.css</file>
  <file>/Data/Sites/1/skins/netplan-glowna/stylemenu.css</file>
  <file>/Data/Sites/1/skins/netplan-glowna/styletreeview.css</file>
  <file>/Data/Sites/1/skins/netplan-glowna/styleblog.css</file>
  <file>/Data/Sites/1/skins/netplan-glowna/styleforum.css</file>
  <file>/Data/Sites/1/skins/netplan-glowna/stylefeedmanager.css</file>
  <file>/Data/Sites/1/skins/netplan-glowna/styleformwizard.css</file>
  <file>/Data/Sites/1/skins/netplan-glowna/stylewebstore.css</file>
  <file>/Data/Sites/1/skins/netplan-glowna/styleaspcalendar.css</file>
  <file>/Data/Sites/1/skins/netplan-glowna/styledatacalendar.css</file>

 

/Data/Sites/1/skins/netplan-glowna/ - this is my main skin folder (one with css files).

That template works fine. But second template don't load any styles :/

I restarted application pool, tried to add some files from my default skin folder (netplan-glowna) to new skin folder or write files in style.config like :

<file cssvpath="/Data/Sites/1/skins/netplan-glowna/style.css" imagebasevpath="/Data/Sites/1/skins/netplan-glowna/">none</file>

but nothing helps.

 

What am I doing wrong? :)

Please help. Thanks.

 

 

 

 

 

 

 

 

 

8/18/2011 7:15:32 AM
Gravatar
Total Posts 18439

Re: style.config problem

As documented in Understanding the style.config file

Css files that live in the skin folder are added very simply with an entry like this for each file:

<file>style.css</file>

the above syntax only works for files in the skin folder of the current skin you can't put a path to other folders there.

Create a folder in a common location like at /Data/mystyles or /Data/Sites/1/mystyles and put the shafred css files there

then use syntax like this:

<file cssvpath="/Data/mystyles/style.css" imagebasevpath="/Data/mystyles/">none</file>

don't store the common css in a skin folder but in a central location outside the skin folders

Hope that helps,

Joe

 

8/18/2011 7:56:01 AM
Gravatar
Total Posts 2

Re: style.config problem

Hi,

Yes it works :)

 

Thanks

Marcin

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