We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 30277
    • 75 Posts
    Hi

    I am trying to add a ’Print this article’ button to my page like modx has in documentation pages but since not a coder i cant understand how to.I search documentation,wiki and forums but cant find any .In my non modx site i was using this code with my print.css

    <img src="images/print.gif" alt="Print this article" /> 
    <a href="mysite.com/doc/page">Print this article</a>


    I have to type every doc and page link by hand for every page at my site , i wonder if there is an auto way to do this modx so i can add it to my template or should i hand code again for every page .

    Thanks
      • 18397
      • 3,250 Posts
      <img src="images/print.gif" alt="Print this article" /> 
      <a href="[~[*id*]~]#">Print this article</a>
      
        • 30277
        • 75 Posts
        Thanks Mark this worked
        <a href="[~[*id*]~] #" onclick="window.print()">


        but i dont sure if there is a bug on latest release (0.9.6RC1) cause when i hit print button ( and cancel one time for test before print) it tooks me to my homepage from article page .This was happening sometimes when i update a page and refresh it

        Thanks

        edit: Probably its not important but it prints my quick edit buttons also