We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 33238
    • 388 Posts
    Is there a possibility to add ColorPicker (or anything similar) into MigX to select a colour from a palette?
    The column render doesn't mater it can be the colour code.

    any help welcome.
    Thank you!

    This question has been answered by Ysanmiguel. See the first response.

      --
      ysanmiguel.com
      • 4172
      • 5,888 Posts
      did you try the colorPicker - TV?

      https://modx.com/extras/package/colorpicker
        -------------------------------

        you can buy me a beer, if you like MIGX

        http://webcmsolutions.de/migx.html

        Thanks!
        • 33238
        • 388 Posts
        Yes I tried Bruno, the ColorPicker is already installed.
        Into the Input TV Type field I entered ColorPicker but nothing happened.

                "MIGX_id":271,
                "field":"textColour",
                "caption":"Text colour",
                "description":"Color Picker here",
                "description_is_code":"0",
                "inputTV":"",
                "inputTVtype":"ColorPicker",
                "validation":"",
                "configs":"",
                "restrictive_condition":"",
                "display":"",
                "sourceFrom":"config",
                "sources":"",
                "inputOptionValues":"",
                "default":"#FFFFFF",
                "useDefaultIfEmpty":"0",
                "pos":1
              },


        Not sure what is wrong.

        thank you!
          --
          ysanmiguel.com
          • 4172
          • 5,888 Posts
          try "colorpicker" as type or create a colorpicker - TV and use that TV as inputTV
          not sure, if it works with MIGX
            -------------------------------

            you can buy me a beer, if you like MIGX

            http://webcmsolutions.de/migx.html

            Thanks!
          • discuss.answer
            • 33238
            • 388 Posts
            Quote from: Bruno17 at Jul 20, 2017, 10:14 AM
            try "colorpicker" as type or create a colorpicker - TV and use that TV as inputTV
            not sure, if it works with MIGX

            Can't believe it... using just "colorpicker" it works!

            "inputTVtype":"colorpicker",


            Well now is confirmed, MigX works well with colorpicker.

            Thank you very much for your help and time Bruno.
            Cheers!
              --
              ysanmiguel.com
              • 53636
              • 1 Posts
              Is there a possibility to add ColorPicker (or anything similar) into MigX to select a colour from a palette?
              The column render doesn't mater it can be the colour code.

              any help welcome.
              Thank you!
                • 33238
                • 388 Posts
                Quote from: myrtleberens at Jul 27, 2017, 10:42 AM
                Is there a possibility to add ColorPicker (or anything similar) into MigX to select a colour from a palette?
                The column render doesn't mater it can be the colour code.

                any help welcome.
                Thank you!

                Mate that was exactly what I was asking, just Install ColorPicker in your extras, then inside MigX create a field and enter colorpicker in the inputTVtype field.
                that's it.
                  --
                  ysanmiguel.com
                  • 46580
                  • 167 Posts
                  Quote from: Ysanmiguel at Jul 20, 2017, 10:48 AM
                  Quote from: Bruno17 at Jul 20, 2017, 10:14 AM
                  try "colorpicker" as type or create a colorpicker - TV and use that TV as inputTV
                  not sure, if it works with MIGX

                  Can't believe it... using just "colorpicker" it works!

                  "inputTVtype":"colorpicker",


                  Well now is confirmed, MigX works well with colorpicker.

                  Thank you very much for your help and time Bruno.
                  Cheers!


                  It works fine, thanks !
                  Is it also possible to use Colorpicker as cell-editor renderer for a quick editing ?
                  I guess It it necessary to create a custom renderer isnt'it ?
                    MODX lover
                    -
                    Développeur MODX / Webdesign / Solutions web
                    • 33238
                    • 388 Posts
                    Quote from: johnxx at Mar 12, 2018, 03:46 PM

                    It works fine, thanks !
                    Is it also possible to use Colorpicker as cell-editor renderer for a quick editing ?
                    I guess It it necessary to create a custom renderer isnt'it ?

                    Do you want to use it in the manager or the front end?
                      --
                      ysanmiguel.com
                      • 46580
                      • 167 Posts
                      Quote from: Ysanmiguel at Mar 12, 2018, 04:08 PM
                      Quote from: johnxx at Mar 12, 2018, 03:46 PM

                      It works fine, thanks !
                      Is it also possible to use Colorpicker as cell-editor renderer for a quick editing ?
                      I guess It it necessary to create a custom renderer isnt'it ?

                      Do you want to use it in the manager or the front end?

                      In the manager : the idea is to edit the field with color picker instead to have to type the color value (Cell editor: this.textEditor) in the grid view cell or to open the "Edit" window.

                      I found this page :
                      https://www.studiorepublic.com/blog/modx-tutorial:-custom-renderers-for-migx-columns.html

                      But I don't know exactly how to include Color Picker as renderer. [ed. note: johnxx last edited this post 6 years, 1 month ago.]
                        MODX lover
                        -
                        Développeur MODX / Webdesign / Solutions web