Jump to content

Nick Belane

Members
  • Posts

    29
  • Joined

  • Last visited

Everything posted by Nick Belane

  1. Thank you mr-fan! It looks pretty cool..I think I dive into the first/ "easy" solution But I can't find a PageTable Field in my Version...(2.7.2)
  2. Thanks for your answer! Yes, I want to know the number of downloads for a few pdfs (separately for each file) No, I don't need to track separately for each user. This is the site and the page "downloads": http://www.schaefer-consult.com/downloads/ There is one template with different fields. One field (type:file, name:downloads) contains all the pdf-files of the page. The body-field contains the links and the copy-text. Something like that: <p>Muster-Baubeschreibung für Asphaltarbeiten<br> (Stand: 01/16)<br> <a class="pdf" href="/site/assets/files/1020/muster-baubeschreibung_asphalt-16-1.pdf" target="_blank">Muster-Baubeschreibung Asphalt 16-1</a></p> The following would be easier and more dynamic, but not so flexible for my customer: $liste =" "; $liste .="<ul>"; $pdf_files = $page->downloads; foreach($pdf_files as $pdf_file) { $liste .="<li>{$pdf_file->description}<br><a href='{$pdf_file->url}' class='pdf'>{$pdf_file->name}</a></li>"; } $liste .="</ul>"; echo $liste; The best solution for us would be something like that in the backend: file-a.pdf (321) file-b.pdf (222) file-c.pdf (123) Danke für die Geduld! ;-) Grüße Nick
  3. Thank you. hm, probably.. But I don't get it. I have a template with different fields. One field (type: file) is named "downloads". In this field I stored different pdfs. But where do I have to put the code in your post? I only want to show the number of downloads in the backend. Not in the frontend/ website.
  4. I am new to processwire and I just want to track the amount of downloads of different pdf-files. I only want to see in the backend how many times user downloaded different pdf-files from my website. Thats all. I do NOT need something like this: https://processwire.com/talk/topic/4602-flexible-downloads-using-pages/ Thanx in advance Nick
×
×
  • Create New...