We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 9995
    • 1,613 Posts
    the snippet can’t preview my custom tv’s, so now i have done it by display none css
      Evolution user, I like the back-end speed and simplicity smiley
      • 9995
      • 1,613 Posts
      double post
        Evolution user, I like the back-end speed and simplicity smiley
        • 19636
        • 29 Posts
        Anybody interested in code for Revo, I attached a new version.
          • 36675
          • 56 Posts
          Having read this thread, I realize I am not the first person to revive it.

          Still it seems that enough have happened to ModX and this snippet to warrant it.

          Is there a PrintDoc snippet for ModX Revo anymore/anywhere?


          Or is it as simple as combining a scripted button with a CSS chunk like https://forums.modx.com/thread/38383/support-comments-for-print-documents?page=4#dis-post-218140"" target="_blank" rel="nofollow">BobRay says on page 4?
            • 17723
            • 221 Posts
            @ministrycrm
            Try to download this PrintDocRevo, but can't ... the link is broken. Can You provide a working link or add to modx adons
              Lucas from AroundCyprus.net
              • 2198
              • 7 Posts
              bttwog hi. i have one question regarding the snippet.

              i am using it for several things to print on my page.

              one is for normal content printing. but when i want to use it for variable printing it does not works.

              how can i change the snippet code and get variable such date or something else be printed.

              Case: i am using on mypage several things:
              pagetitle is ok
              content is ok
              description is ok

              date [+date+] does not works
              ingredients [+ingredients+] does not works

              i have instead of

              $q = $modx->db->select('*', $modx->getFullTableName('site_content'), 'id = '.(int)$_GET['p_docid'].' LIMIT 1');
              $rec = $modx->db->getRow($q);

              used changed code:

              $q = $modx->db->select('*', $modx->getFullTableName('site_tmplvar_contentvalues'), 'value = '.(int)$_GET['p_docid'].' LIMIT 1');
              $rec = $modx->db->getRow($q);

              it is possible to get variable to be printed or show in print page?

              thanks laugh