/* Advanced - CSS File
USE THIS STYLE SHEET
FOR COLOR STYLE */
/*@import url('assets/templates/advanced/styles/default/default.css');*/
/*@import url('assets/templates/advanced/styles/brown/brown.css');*/
/*@import url('assets/templates/advanced/styles/black/black.css');*/
/*@import url('assets/templates/advanced/styles/blue/blue.css');*/
/*@import url('assets/templates/advanced/styles/darkgreen/darkgreen.css');*/
/*@import url('assets/templates/advanced/styles/green/green.css');*/
/*@import url('assets/templates/advanced/styles/orange/orange.css');*/
/*@import url('assets/templates/advanced/styles/pink/pink.css');*/
/*@import url('assets/templates/advanced/styles/purple/purple.css');*/
@import url('assets/templates/advanced/styles/red/red.css');*/
As you may notice, to change the color of my template, I have to remove the "/*" from whatever color I want to use.
My question, is there a way to make this process easier where I can perhaps create a resource, with radio buttons or something?
Appreciate any and all feedback, please.This question has been answered by ironchip. See the first response.
default==[[$default]]||brown==[[$brown]]
default/default.css
@import url('assets/templates/advanced/styles/[[*css]]');Brown==brown/brown.css||Black==black/black.css||Blue==blue/blue.css
default/default.css
<link href="assets/template/advanced/styles/[[*cssSelector]]" rel="stylesheet" type="text/css" />

. Gotta keep reading.
You could create a template varible (TV) Listbox (single select) that holds the value of the style sheet options in the Input Option Values (of course complete your list)
Brown==brown/brown.css||Black==black/black.css||Blue==blue/blue.css
then in the default value put
default/default.css
Then in your template add the CSS link with the corresponding TV.
<link href="assets/template/advanced/styles/[[*cssSelector]]" rel="stylesheet" type="text/css" />
Assuming you named your TV "cssSelector".
Make sure that you give all templates access that need to use this TV by selecting them in the TV "Template Access" tab.
Cheers
.1. created a TV named: cssSelector 2. in the Input Option Value of that TV I put: Brown==brown/brown.css||Black==black/black.css||Blue==blue/blue.css||Darkgreen==darkgreen/darkgreen.css||Green==green/green.css||Orange==orange/orange.css||Pink==pink/pink.css||Purple==purple/purple.css||Red==red/red.css 3. in the Default Value of that TV I put: default/default.css 4. assigned the TV to all templates (only have 2) 5. in my header chunk (which is where I reference all of my css and js files): <link href="assets/template/advanced/styles/[[*cssSelector]]" rel="stylesheet" type="text/css" /> Now when I go to the old resource I created called Color, the TV is there with the options to select different colors from dropdown list, but selecting them does nothing. Can someone help pinpoint what I'm doing or not doing correctly, please?