We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 38685
    • 59 Posts
    Not sure if others have spotted this but
    when I upgraded my site I had chunk loading into a textarea

    Before in 1.0.0. it looked fine... now it takes out the extra returns and condenses it!

    Can you please tell me how to fix this... Or do I need to submit a JIRA bug??

    Thanks Paul
      Paul AL Bakulich - Association for Computing Machinery Professional Member
      http://palbakulich.me/ | http://twitter.com/#!/palhmbs
      • 22668
      • 718 Posts
      hmmm. extra returns? Looks like you have one of revisions from svn, right? Where did you get the distribution?

      Looks like it is MODX-948 work.

      You can check with old one file http://svn.modxcms.com/crucible/browse/~raw,r=6041/modx/branches/1.0.x/manager/includes/document.parser.class.inc.php
      If no problems after this, I’m right.
      Note, that this file only for checking the problem. Because it has more than one change.
        • 38685
        • 59 Posts
        Tried your suggestion & it hasn’t fixed anything.... must be something else!

        Here is some screenshots of the problem....
          Paul AL Bakulich - Association for Computing Machinery Professional Member
          http://palbakulich.me/ | http://twitter.com/#!/palhmbs
          • 22668
          • 718 Posts
          You used the WYSIWYG editor? (TinyMCE for example)
            • 38685
            • 59 Posts
            once I turned on the WYSIWYG TinyMCE I got the plain code in the chunk...

            ie... it put in all <p>
            tags...

            Hope this helps!

            Thanks Paul
              Paul AL Bakulich - Association for Computing Machinery Professional Member
              http://palbakulich.me/ | http://twitter.com/#!/palhmbs
              • 38685
              • 59 Posts
              Have a work-a-round in place for this...
              As I don’t have the kudos to know why it is doing what it is doing!

              But my Modx EVO 1.0.2 doesn’t like textarea boxes.....
              when I loaded a normal html chunk in one, the html code didn’t get processed along with the page....

              SO I have used a css property to load it instead....

              .newtextarea {
              width:150px;
              height:150px;
              overflow:scroll;
              }

              which does load the chunk fine!

              Hope somebody with real brains can give an explanation for this behaviour?
              as I said before it wasn’t the document.parser.inc.php
              because I swapped that to the old one... and it was still doing it!

              Thanks for all the help... Paul
                Paul AL Bakulich - Association for Computing Machinery Professional Member
                http://palbakulich.me/ | http://twitter.com/#!/palhmbs
                • 25663 MODX Staff
                • 12,272 Posts
                Can someone please open a request in JIRA for this issue with specific details pulled from this thread so we can get it sorted for the next patch release? Thanks!
                  Ryan Thrash, MODX Co-Founder
                  Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
                  • 18913
                  • 654 Posts
                  Hi,

                  Yup, looks like the behavior changed from 1.0.0 to 1.0.2

                  This should work in 1.0.2 :

                  - create a template variable called, for example, mainsuggestions. make its type textarea
                  - assign this to the template that is used by your efieldcheck/eform call and save
                  - pull up the document containing that eform call and pour your text into the template variable field, newlines and all. save
                  - edit your form and replace the call to the chunk with the call
                  to the template variable, i.e. {{mainsuggestions}} -> [*mainsuggestions*]

                  Matt
                    • 38685
                    • 59 Posts
                    Have posted a JIRA bug.. THANKS!
                      Paul AL Bakulich - Association for Computing Machinery Professional Member
                      http://palbakulich.me/ | http://twitter.com/#!/palhmbs