We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 28042 ☆ A M B ☆
    • 24,524 Posts
    Why would you need a TV for the CSS resources? I might use TVs with a default value for colors, such as Blue1 and Blue2, but these would act as CSS variables, not to be edited for individual resources. Personally though, I'd rather use ClientConfig to set up custom settings for variables.

    Anyway, I see your point. It will use a default TV value, but not one for the resource itself. Something to do with the context, I think.

    If this is a problem, these don't have to be in a context. You could just use a resource in the web context as the parent for the CSS resources.
      Studying MODX in the desert - http://sottwell.com
      Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
      Join the Slack Community - http://modx.org
      • 32507
      • 142 Posts
      I got it. Since it's getResource chunk, it have to be in this format:
      .row2-col3 {
      	background-color: [[+tv.corporate_color]];
      }
      


      Instead of this:
      .row2-col3 {
      	background-color: [[*corporate_color]];
      }
      


      It's been a while since i worked with modx :/

        • 32507
        • 142 Posts
        I though TV:s will work as a CSS variables. I have get familiar with ClientConfig.
        Thank you at this point!
          • 32507
          • 142 Posts
          I also suggested an improvement to the minification that cssSweet does https://github.com/sepiariver/cssSweet/issues/2

          I just updated cssSweet to version 1.1.0-rc1. Minification is not working as expected. It broke some parts of my css.
          If i turn minify off in System setting, it still minifies file.
          If i turn comments off, they're also still there.
          :(