Good day! Can you please suggest what is the best way to scan the directories for PDF files and create the download links from them.
Archive
---twig
Almost forgot, how we can print out only the PDF files?
Your code looks like it should work fine. is it not? You should be able to inspect the extension ie:
TWIG
{% if a.extension == 'pdf' %}
...
{% endif %}
---
Thank you. Just thought there is another way... just for learning... :)
Log in to reply.
Suggested topics
| Topic | Participants | Replies | Views | Activity |
|---|---|---|---|---|
| 0 | 1366 | 9 years ago | ||
| 2 | 940 | 9 years ago | ||
| 2 | 4069 | 9 years ago | ||
| 1 | 2960 | 9 years ago | ||
| 3 | 1125 | 9 years ago |