Display the label of a file in a template
-
So I have a pod “Uploads” with a file/image/video field. It has “Multiple files” upload limit, and an editable heading checked (not sure it is called as such in English, though).
In the page “Add new upload”, users are able to upload a number of files, and label them. I would like to output download buttons with these labels, but can’t find the property that outputs these names.
That’s the field I would like to display at frontend:
And here is my current template, with the relevant stuff only:
<article class="upload"> <h3>{@post_title}</h3> [each fileupload] <a href="{@_src,esc_url}" class="button uploads-file"> <span>[if post_title]{@post_title}[else]Скачать[/if]</span> </a> [/each] </article>
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Display the label of a file in a template’ is closed to new replies.