We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 23750
    • 11 Posts
    I want to preview documents before saving. This is the whole idea in previewing. But now I have to save the document if I want to preview it. The preview property in modx is kinda useless. It would be nice to preview before saving so I know if something is wrong and won´t make it publicly available.

    Is this going to be fixed?

    Regards
      • 6726
      • 7,075 Posts
      Look again in the preview tab (In the document settings you have : General, Page Settings, META Keywords, Preview -> this is the last tab), you have a link to save your changes a preview them directly after ("This is a preview of your last saved changes. Click here to Save and Refresh your current changes").

      I hope this answers your question...
        .: COO - Commerce Guys - Community Driven Innovation :.


        MODx est l'outil id
        • 23750
        • 11 Posts
        Doesn´t answer. What if i make an error to my page, save it and the preview? The error is public because the document is saved.

        Like printing. I don´t have to print my document to preview it.
          • 6726
          • 7,075 Posts
          Ok your concern is that saving makes the document published.

          The default behavior in MODx is that documents have to be manually published (e.g tick the published box in the document properties).

          Maybe you have changed this setting, if so just go to [tt]Tools > Configuration > Site >> Published default[/tt]-> set this to no.

          This way saving the document won’t publish it smiley
            .: COO - Commerce Guys - Community Driven Innovation :.


            MODx est l'outil id
            • 23750
            • 11 Posts
            Yes I know.

            But if the page is published already and I want to update it. If I make an error while updating, the error goes public because of this preview-function is not really a preview at all.

            Preview should be real-time and can be accomplished with temporary files for instance. This is a suggestion to make modx better. (I don´t have time for it myself) but for the dev team could make this in one day, or couble of hours maybe.

            Thanks.
              • 32646
              • 87 Posts
              Perhaps you mean a version or editorial control, where the administrator or editor would have to approve any changes before they go live. That would be a worthwhile option. On an already published page, I don’t see a change making that big of a difference, unless you accidentally add an extra unclosed div or something.

              But when I go to the source editor and click update, the preview shows me the change before I actually save the changes to the database. What am I missing here?
                Just learning the ropes.
                • 3749
                • 24,544 Posts
                I think the OP has a valid point. It’s the difference between "print preview" and "print" in a word processor. The preview you get inside the RTE isn’t always accurate.

                Also, say you’re working with the RTE off because it will screw up your code if it’s on and you’d like to preview your document without saving it. I don’t know of any way of doing this in MODx at present.

                As a workaround, I sometimes clone the document and work on the unpublished clone. At other times, I just copy the full original to the clipboard (Ctrl-A, Ctrl-C) so I can revert if I don’t like the changes. But it would be nice to have a true "preview before saving" feature.

                Bob
                  Did I help you? Buy me a beer
                  Get my Book: MODX:The Official Guide
                  MODX info for everyone: http://bobsguides.com/modx.html
                  My MODX Extras
                  Bob's Guides is now hosted at A2 MODX Hosting
                  • 6726
                  • 7,075 Posts
                  Ok I understand better... wordcooper is right, the only true way to manage this without working around it is revisionning but that’s not something can do, at least not right now undecided
                    .: COO - Commerce Guys - Community Driven Innovation :.


                    MODx est l'outil id
                    • 7231
                    • 4,205 Posts
                    It would be a very nice feature. But I think that unpublishing -> editing -> publishing is an acceptable work flow. Making significant changes to a live site may not be a good idea.

                    This is a suggestion to make modx better. (I don´t have time for it myself) but for the dev team could make this in one day, or couble of hours maybe.
                    I am not sure if the time table is correct. If it could be done in a few hours then why not just do it yourself over the weekend or during lunch or something? I suspect that this would require several modifications to the work flow, but I could be wrong. wink
                      [font=Verdana]Shane Sponagle | [wiki] Snippet Call Anatomy | MODx Developer Blog | [nettuts] Working With a Content Management Framework: MODx

                      Something is happening here, but you don't know what it is.
                      Do you, Mr. Jones? - [bob dylan]
                      • 32646
                      • 87 Posts
                      A temporary work-around might be to duplicated a page and then add a "-rev2" or something to the alias (assuming FURLs). Then you could look at the actual page, but it would be side by side with the live page. Once it is changed and tweaked properly, you could copy the data back to the live page.

                      Maybe someone with some PHP skilz (unlike me) could make a snippet or module that would do that automagically. grin
                        Just learning the ropes.