afx - 1 week ago

Hi! I am super new to Pyro and I have a basic questions.

I have uploaded a file in the backend using the built-in files module: Filename: alpspitze.jpg

How can I use this file in the frontend? More specifically in the a php-file of my Theme. So I need the complete absolute path (e.g. app/default/files...../alpspitz.jpg)

How do I accomplish that?

Thanks in Advance. AFX

cs42na - 5 days ago

{% set folder = entries('files','folders').findBySlug('folder_slug') %} {% set files = entries('files').where('folder_id','=', %} {% for file in files %} {{ file.downloadPath() }} {% endfor %}

the downloadPath will give you the url for download.