We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 8869
    • 32 Posts
    It would be good to have a colour picker TV/widget so that you can add a color code TV to a template allowing the end user to customise the appearance of a template and easily change the colours displayed. eg you could use multiple TV’s in the style defs of the template
      • 26422
      • 107 Posts
      Yes, this would be a very useful addition. We use TVs to change background colour etc. all the time.
        Crawford Paul

        Bridgecourt Web Design - Proudly using ModX CMS
        Serving Welland, Niagara, Ontario, Canada and the world!
        http://www.bridgecourt.com
        • 7455
        • 2,204 Posts
        In the older versions pre 095 I made a tv for that by hacking the core code. its not so easy to do I think.

        without hacking the core.

        there is a wiki pag eon this here:
        http://wiki.modxcms.com/index.php/Adding_TV_Widgets_without_hacking_the_core
          follow me on twitter: @dimmy01
          • 28042 ☆ A M B ☆
          • 24,524 Posts
          I think this needs to be in the document editor, so it would be an input widget, while the Wiki below is for emulating output widgets. Might be able to add this in there somewhere in a plugin, maybe using the onDocFormRerender event? At the bottom of the mutate_content.dynamic.php file is a block of javascript adding the two calendar date-picker widgets to the form, Perhaps the plugin could insert the color picker widget in there as well.

          http://moorainbow.woolly-sheep.net/#desc
            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