evisser-vcontent
-
7/13/2010 1:48:54 AM
RE:CSS - where to store ? Advice for good practice wanted
Think I got a workable solution for me after coming across a post in this forum Editing CSS Stylesheet in CMS where learned that Kentico picks up CSS files from the App-Themes folder. Step 1: In Site Manager -> Development -> CSS stylesheets I have defined a dummy CSS name and codename: cssplaceholder Content is one line /* Dummy */ Step 2: In Site Manager -> Sites, I have selected cssplaceholder as my site CSS stylesheet Step 3: create in your MySite/App_Themes folder a new folder called cssplaceholder (exactly as the codename) In the folder cssplaceholder are my images folder, my default.css and my special.css. I noticed that that Kentico will now automatically include link statements in my master page to the default.css and the special.css Step 4: start your favourite CSS editor My CSS editor opens the Inetpub/wwwroot/MySite/App-Themes/cssplaceholder/default.css file. I can now make changes to the CSS files, save the file, reload my web page and voila my change is displayed. Hope this is useful for other css editors.
|