We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 29877
    • 35 Posts
    BobRay,

    Thanks for the reply. I haven’t yet utilized that type of functionality on a site yet. I imagined that wasn’t hard to implement and I certainly considered it after reading this thread of posts.

    However, I do like the idea of being able to format the data I have within MODx the way I’d like before printing as opposed to only removing elements I don’t want.
      • 3749
      • 24,544 Posts
      Quote from: thomasgrant at Sep 11, 2009, 03:33 PM

      BobRay,

      Thanks for the reply. I haven’t yet utilized that type of functionality on a site yet. I imagined that wasn’t hard to implement and I certainly considered it after reading this thread of posts.

      However, I do like the idea of being able to format the data I have within MODx the way I’d like before printing as opposed to only removing elements I don’t want.

      You can use CSS to lay the printed page out however you want it. I didn’t need that in the example, but it works fine.
        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
        • 29877
        • 35 Posts
        Quote from: BobRay at Sep 11, 2009, 03:37 PM

        You can use CSS to lay the printed page out however you want it. I didn’t need that in the example, but it works fine.

        I imagined that to be the case, with more work that is. So is this add-on essentially broken? Or just not very easy to use?
          • 3749
          • 24,544 Posts
          Quote from: thomasgrant at Sep 11, 2009, 03:41 PM

          Quote from: BobRay at Sep 11, 2009, 03:37 PM

          You can use CSS to lay the printed page out however you want it. I didn’t need that in the example, but it works fine.

          I imagined that to be the case, with more work that is. So is this add-on essentially broken? Or just not very easy to use?

          Someone else will have to answer that -- I’ve never used it. If you’re using MODx Evolution, it’s possible that the snippet needs updating to work with Evo.
            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
            • 25003
            • 9 Posts
            I had to turn of cachable on the "Print" document, otherwise it always displays the first page viewed in "print preview" mode.
              • 32645
              • 377 Posts
              I’ve been using this snippet with the idea of printing out individual Ditto articles being listed.

              I followed the instructions to the letter, but it always outputs the listing page, and not the actual article.

              If I change the printDoc to [*id*] then it will just output the page and its linked template, not the print template.

              This snippet does not work with Ditto listed articles, but is there a workaround?
                • 28907
                • 16 Posts
                I haven’t read the entire thread, but I hope that I don’t repeat this question:
                Would it be possible to provide more info (examples) in the instructions?
                E.g. part #2 "Create a new document called Print. In here put the snippet code." What snippet code? smiley

                I had to read the first posts in this thread to understand how to setup this great Add-On.

                This is indeed meant to be constructive critique because this is a great Add-On!
                  • 25132
                  • 129 Posts
                  I have been trying to make this snippet work all morning but am completely stuck I’m afraid! I got as far as generating the printed page using all the defaults provided with the snippets. But not all content that needs to be printed is within the [+content+] element, so I have tried to change the template chunk by adding template variables from the page, using the [+......+] format as per normal for template chunks. However, it doesn’t pick these up:

                  What am I doing wrong?

                  Here is my template chunk:

                          	
                  <div id="mainContent">   
                      <img src="[+gallery-img-1+]" height="143" width="200" />
                      <img src="[+gallery-img-2+]" height="143" width="200" />
                      <img src="[+gallery-img-3+]" height="143" width="200" />
                      <img src="[+gallery-img-4+]" height="143" width="200" />
                      <img src="[+gallery-img-5+]" height="143" width="200" />
                      <img src="[+gallery-img-6+]" height="143" width="200" />
                      <img src="[+gallery-img-7+]" height="143" width="200" />
                      <img src="[+gallery-img-8+]" height="143" width="200" />
                      <img src="[+gallery-img-9+]" height="143" width="200" />
                      <img src="[+gallery-img-10+]" height="143" width="200" />
                      <img src="[+gallery-img-11+]" height="143" width="200" />
                      <img src="[+gallery-img-12+]" height="143" width="200" />
                  
                      <div id="col1">
                                  
                          <h2>[+property-address1+]</h2>
                  
                          <h3>[+property-address2+] [+property-area+], [+property-town+] [+property-county+]</h3>
                          <br />
                          <table width="300" border="0" cellspacing="0" cellpadding="0" summary="Table listing property details">
                              <tr>
                                  <td width="114">Status:</td>
                                  <td width="186">[+property-status+]</td>
                              </tr>     
                              <tr>
                                  <td width="114">Property Ref:</td>
                                  <td width="186">[+property-ref+]</td>
                              </tr>                        
                              <tr>
                          
                                  <td width="114">Bedrooms:</td>
                                  <td width="186">[+bedrooms+]</td>
                              </tr>
                              <tr>
                                  <td>Bathrooms:</td>
                                  <td>[+bathrooms+]</td>
                              </tr>
                              <tr>
                                  <td>Receptions:</td>
                                  <td>[+receptions+]</td>
                              </tr>                      
                          </table>     
                  
                          <br />
                  
                      </div> <!--end col1 -->
                                  
                      <div id="col2">
                  
                          <h2>Asking Price: €[+asking-price+]</h2>
                  
                          [+content+]
                  
                      </div><!--end col2 -->
                                  
                  </div> <!--end mainContent -->
                  
                  
                    • 9995
                    • 1,613 Posts
                    I don’t understand, hard to explain.

                    What i like to do is on a page, i click on the print button and then i get a popup, into the popup i get the same page only with different template.

                    What i now get is the same page in a popup and on the part where i have set the snippet code i get the good template content. So now i have double content.

                    The good template html is put into the popuppage on the place where the snippet is called.
                    All arround needs to be gone! So i need a blank popup page with the tpl code into it.

                    Now i have to use css to display none all the other items..

                      Evolution user, I like the back-end speed and simplicity smiley
                      • 7455
                      • 2,204 Posts
                      Quote from: fourroses666 at Mar 03, 2011, 11:07 AM

                      I don’t understand, hard to explain.

                      What i like to do is on a page, i click on the print button and then i get a popup, into the popup i get the same page only with different template.

                      What i now get is the same page in a popup and on the part where i have set the snippet code i get the good template content. So now i have double content.

                      The good template html is put into the popuppage on the place where the snippet is called.
                      All arround needs to be gone! So i need a blank popup page with the tpl code into it.

                      Now i have to use css to display none all the other items..

                      set the template for your popup (where the snippet is called) to blank.

                        follow me on twitter: @dimmy01