SPECIAL OFFER: Only $69 for access to everything in OSTraining for 1 year! You save $75!  1
Join today and get access to 1,000's of books and videos. Learn WordPress, Drupal, Magento, Joomla and more! Sign up today!

Dynamic Download Page

5 years 10 months ago #118634 by tfried
Dynamic Download Page was created by tfried
Hi,

I'm struggling a bit with creating a less maintenance intensive download page for PDFs uploaded with some content in a well defined public directory. So if those PDFs are e.g. stored in /default/files/further-info-pdfs/ I'd like to offer not only to look at them when viewing the content but also provide a Menu Item "Download" where a user can see all those available PDF of that directory with their description and just select and view/download it.

Right now I'm managing a content type instance with Links to those files for this which needs to be updated manually in order to keep in sync. with the content which actually provides those PDFs. Can you suggest something for improving this process for a more dynamically creation/update of the download page?

Please Log in to join the conversation.

5 years 10 months ago #118640 by steve
Replied by steve on topic Dynamic Download Page
Hi tfield

Certainly, there's a few ways we can do this in views.

Here's a simple way to add a link automatically:
www.ostraining.com/blog/drupal/add-links-to-fields-in-views/

There's also Example #2 here:
www.ostraining.com/blog/drupal/entity-views-attach/
The following user(s) said Thank You: tfried

Please Log in to join the conversation.

Join today and get access to 1,000's of books and videos. Learn WordPress, Drupal, Magento, Joomla and more! Sign up today!