We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 37042
    • 384 Posts
    I've created a TV called Redactor-File-Choose and I'm having problems getting a RichText Redactor field to work in MIGX.

    Firstly, does my Redactor-File-Choose (Redactor TV) need the Input Type set to

    1. RichText
    2. or
    3. migredactor

    And in my MIGX TV setup, do I then call it as follows

    {"field":"description","caption":"Description","inputTV":"Redactor-File-Choose"}


    Depending on what I do, I am getting either no TV displaying or no MIGX popup displaying.
    After seeing the following error, I have installed latest Redactor (1.6) and latest redactor too

    [2014-01-21 08:45:31] (ERROR @ /paas/c1997/www/core/components/migx/model/migx/migx.class.php : 917) PHP warning: Invalid argument supplied for foreach()

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

      ...
      • 4172
      • 5,888 Posts
      RichText should be the right one.

      which line is 917 in your version?
      can you copy/paste this line here?

      what happens, when you set the system-setting debug to 0?

      Can't reproduce it here. Haven't redactor installed.
        -------------------------------

        you can buy me a beer, if you like MIGX

        http://webcmsolutions.de/migx.html

        Thanks!
        • 38290
        • 712 Posts
        I've confirmed that this should work to use a Redactor rich text input:
        [
        {"caption":"Info", "fields": [
            {"field":"title","caption":"Title"},
            {"field":"description","caption":"Description","inputTVtype":"richtext"}
        ]}
        ] 


        I don't think using a custom Redactor TV within MIGX is currently supported. Bruno let me know if you need access to an install with Redactor installed.
          jpdevries
          • 37042
          • 384 Posts
          Quote from: Bruno17 at Jan 21, 2014, 06:45 PM
          RichText should be the right one.

          which line is 917 in your version?
          can you copy/paste this line here?

          what happens, when you set the system-setting debug to 0?

          Can't reproduce it here. Haven't redactor installed.

                 $controller->setPlaceholder('update_win_title', !empty($this->customconfigs['update_win_title']) ? $this->customconfigs['update_win_title'] : 'MIGX');
          
              }
          
              function getColumnRenderOptions($col = '*', $indexfield = 'idx', $format = 'json', $getdefaultclickaction = false) {


          It's the empty line before the function getColumnRenderoptions line.
            ...
          • discuss.answer
            • 37042
            • 384 Posts
            I got to the bottom of this.

            I was running Redactor 1.1 which didn't support MIGX.
            I hadn't noticed as the Package Manager told me Redactor was up to date and even clicking 'Check for updates' didn't trigger a prompt that there was a 1.3.5 available.

            The only issue I have now is that MIGX seems to only support a normal RichText TV. But with a custom Redactor TV you can do some really cool stuff like customise your specific TV to have

            - file upload path
            - file browse path
            - buttons o
            f your choice on your RTE

            etc etc

            Setting my Redactor field as anything other than RichText through breaks MIGX. [ed. note: eladnova last edited this post 10 years, 2 months ago.]
              ...
              • 4172
              • 5,888 Posts
              Quote from: dinocorn at Jan 21, 2014, 07:23 PM
              Bruno let me know if you need access to an install with Redactor installed.

              This would be great!
              Can you PM or email me?

              Thanks!
                -------------------------------

                you can buy me a beer, if you like MIGX

                http://webcmsolutions.de/migx.html

                Thanks!
              • Was this ever resolved, or do we still use a standard RichText field with MIGX?
                  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
                  • 4172
                  • 5,888 Posts
                  a standard richtext - field should work and it is also possible to have customized configurations for each redactor-field
                    -------------------------------

                    you can buy me a beer, if you like MIGX

                    http://webcmsolutions.de/migx.html

                    Thanks!
                    • 45353
                    • 12 Posts
                    Hello, does anyone know if it is possible to use the redactor field type in a MIGX TV without having which_editor set to redactor. We need to use CKEditor for most richtext fields but want to use customized redactor for some fields.

                    Thanks in advance for any help or suggestions smiley