We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 34084 ☆ A M B ☆
    • 756 Posts
    Also in the chunk that you have for yoru header where it's building the CSS link make sure you have the caching disabled in the TV. Notice the added "!" in the TV selector.

    <link href="assets/template/advanced/styles/[[!*cssSelector]]" />
      Evo Revo // Ubuntu, CentOS, Win // Apache 2x, Lighttp (Lighty)
      Visit CharlesMx.com for latest news and status updates.
    • discuss.answer
      • 35082
      • 57 Posts
      No Paulp,

      I didn't try it your way, because from what I read, it would be used to select the color when creating the resource.

      What I'm trying to do here is be able to change the color across the board, as I only use the 1 template throughout the site.

      So I just want to go to the manager, click a radio button or two, and change color on a site that's already built.

      Perhaps I didn't read or understand your instructions properly.
        • 3749
        • 24,544 Posts
        Ah, then you don't want a TV at all -- TVs are for setting data related to specific resources.

        You want to create a new System Setting. I would be inclined to just use style tags.

        System Setting: page_color
        Value:red

        style="text-color:[[++page_color]]"
          Did I help you? Buy me a beer
          Get my Book: MODX:The Official Guide
          MODX info for everyone: http://bobsguides.com/modx.html
          My MODX Extras
          Bob's Guides is now hosted at A2 MODX Hosting
          • 35082
          • 57 Posts
          So lets say this, right now I have the color css file as a resource, and my site references this resource to apply the color throughout the entire template.

          I have several different color options within this color css resource, and to change color I have to comment out the remaining options, and leave the option(color) that I want to display not commented out.

          I guess what I'm asking, is there a way for me to create radio buttons to apply the same functions as manually commenting out or selecting the specific color css style sheet within that resource?
            • 35082
            • 57 Posts
            Okay Everyone,

            Thanks again for all of your assistance and patience with me. With the personal hands on, screen sharing assistance of CharlesMx, I was finally able to get this thing working.

            Basically what we did was use the theory that BobRay suggested about "System Setting" page color value, as well as the TV value setup. I won't go into too much details, but the system setting option allows me to change the color for entire site (same as I was manually doing it in the CSS file).

            And the TV setting allows me to set/change the color for each page individually, overriding the system setting, unless the TV is set to default, then the system setting will override it.

            Here is the code that allows me to do what is mentioned above, used in my header chunk containing the css files locations:
            <link href="assets/templates/advanced/styles/[[!*cssSelector:isnot=`default/default.css`:then=`[[!*cssSelector]]`:else=`[[++cssSelector]]`]]" rel="stylesheet" type="text/css" />


            Again, I really appreciate everyone's input on this as it helped me to understand more clearly what I wanted to do.

            Let me know if you have any questions, and I will be glad to share move of what I've learned.