We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 8822
    • 203 Posts
    Does anyone know the best way of keeping track of the number of times a document has been downloaded (using FileDownload R), without this information being visible to the end user (For example, not displaying it alongside the download link)?
      • 37105
      • 194 Posts
      I believe it can be done by calling &tplCode to overrule the default template.

      For example:

      &tplCode=`
      <a href="[[+link]]" title="[[+filename]]">
      <span class="gradient curve-four" style="display: block; text-align: center;">
      <img src="[[+image]]" alt="" />Download this Document1.doc<hr />
      [[+date]]
      ([[+count]] downloads)

      </span>
      </a>`

      Removing the count part is enough. Downloads will still be counted, just not mentioned in output!
        Codeplaza Webdesign: for professional websites at low cost
        • 8822
        • 203 Posts
        Thanks for your comment - might be missing something here, so apologies if so, but how does the website administrator check the number of downloads?
          • 37105
          • 194 Posts
          As far as I can see, that's not possible. I think you have to create a CMP [Custom Manager Page] for this feature. You can only see the stats in de database tables.

          There is a very nice tutorial for creating such a CMP:
          http://www.bdcreative-design.com/blog/creating-a-cmp-in-modx-using-migxdb/
            Codeplaza Webdesign: for professional websites at low cost