We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 4971
    • 964 Posts
    I am using the manager actions in a module I am
    developing so my client has an alternate interface
    than the document tree.

    One I am trying to use is "Preview Document" and the old wiki
    manager action list indicates to use ’100’.

    Well, 100 shows a plugin execution order when applied to a
    document instead of previewing the document.

    All other manager actions are working fine...

    is this an error in the docs or am I doing something wrong?
    TIA
      Website: www.mercologia.com
      MODX Revo Tutorials:  www.modxperience.com

      MODX Professional Partner
      • 28042 ☆ A M B ☆
      • 24,524 Posts
      The Preview feature is now a javascript; the preview button includes this code
      onclick="<?php echo "window.open('../index.php?id=$id','previeWin')"?>"

      So basically it just opens another window with the page displayed from the front-end. The only reason there’s php there is to use the $id variable to specify the document id to view.
        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
        • 4971
        • 964 Posts
        Thanks a lot Susan, I will give it a try...
          Website: www.mercologia.com
          MODX Revo Tutorials:  www.modxperience.com

          MODX Professional Partner