We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 11975
    • 2,542 Posts
    You’re right.
    I’ve missed some of the missing syntax grin

    :-)
      Made with MODx : [url=http://www.copadel.com]copadel, fruits et l
      • 21112
      • 156 Posts
      Thanks for correcting the syntax of that line of code. I wouldn’t have known about it! That seems to work well now.

      I’m getting a problem elsewhere now, however. As per the suggestion above, I’ve added an RTE and a checkbox TV. The RTE works fine, but the checkbox doesn’t preserve its state. When I check the box and save (this happens whether there is content in the RTE TV or not), upon reloading the document to edit, the box is unchecked, and the new "draft" content in the RTE TV does not get displayed on the site, only the correct "live" content is shown.

      Why wouldn’t the state of the checkbox be saved along with the rest of the document’s changes?
        • 4310
        • 2,310 Posts
        Are you using Safari on a Mac and Tiny MCE 2.1.2 as the RTE?
        I’ve heard of some issues with RTE TV’s not saving correctly with the above combination.
          • 21112
          • 156 Posts
          I’m using Firefox 3.0 RC2 on Win XP, and using Tiny MCE 2.1.1.1 on ModX 0.9.6.
            • 4310
            • 2,310 Posts
            There were some reports of issues with FF3 and Javascripts, have you tried with another browser?
              • 21112
              • 156 Posts
              I just tested it with MSIE 7 & 6, and the same problem occirred on both browsers.
                • 21112
                • 156 Posts
                Has anyone got any other suggestions on this one? I’d like to invoice the client soon, and this is the only thing holding me up smiley
                  • 34017
                  • 898 Posts
                  Do you have a Default Value? If it is set to inherit that might be it.
                    Chuck the Trukk
                    ProWebscape.com :: Nashville-WebDesign.com
                    - - - - - - - -
                    What are TV's? Here's some info below.
                    http://modxcms.com/forums/index.php/topic,21081.msg159009.html#msg1590091
                    http://modxcms.com/forums/index.php/topic,14957.msg97008.html#msg97008
                    • 21112
                    • 156 Posts
                    Thanks for the suggestion, I looked into it, and did some more testing, and that definately seems related.

                    For the checkbox TV, when I leave the "Default Value" field empty, the box is checked by default, and when the document is saved it stays checked EVEN IF I unchecked it then saved. Also, the content in the "draft content" TV is NOT displayed to a logged-in admin when the check box is checked.

                    When I put "0" in the Default Value of the checkbox TV, the checkbox is unchecked by default, and stays as such after saving, EVEN IF I check it and save.

                    It seems that both TVs are being completely ignored by ModX.

                    Just for confirmation, this is the code I’m using in the template in place of [*content*]:

                    [+phx:if=`[*show_draft*]`:is=`1`:and:mo=`Admins`:then=`[*test_draft*]`:else=`[*content*]`+]
                      • 36592
                      • 970 Posts