Click here to Skip to main content
15,892,480 members

Site Skinning MVC and DotLess

Unsy asked:

Open original thread
Hi Guys

I have a site that is to be skinned for different companies depending on a value that I will have in the config file.

What I am planning on doing is having several folders under my content folder, each containing the style sheets and images that will be applied for that company. Then I look up the value in the config file to determine which folder to look at when I fire up my BundleConfig.cs.

My question is what is the best, most maintainable way of doing this? The layout should remain the same, it's really just for the colour schemes and images. I'm using dotLess so I can set up colour schemes easily enough, but if I make a change to the layout somewhere, I am going to have to add the same change to X amount of other style sheets in all the other folders.

Any help would be greatly appreciated.
Tags: MVC4

Plain Text
ASM
ASP
ASP.NET
BASIC
BAT
C#
C++
COBOL
CoffeeScript
CSS
Dart
dbase
F#
FORTRAN
HTML
Java
Javascript
Kotlin
Lua
MIDL
MSIL
ObjectiveC
Pascal
PERL
PHP
PowerShell
Python
Razor
Ruby
Scala
Shell
SLN
SQL
Swift
T4
Terminal
TypeScript
VB
VBScript
XML
YAML

Preview



When answering a question please:
  1. Read the question carefully.
  2. Understand that English isn't everyone's first language so be lenient of bad spelling and grammar.
  3. If a question is poorly phrased then either ask for clarification, ignore it, or edit the question and fix the problem. Insults are not welcome.
  4. Don't tell someone to read the manual. Chances are they have and don't get it. Provide an answer or move on to the next question.
Let's work to help developers, not make them feel stupid.
Please note that all posts will be submitted under the http://www.codeproject.com/info/cpol10.aspx.



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900