Liqiud basics
Modules
API
Mailer
Attached files
On this page
Overview
Groups, posts and profiles have attached files.
Below is a list of all the available drops on the attached file object
| Name | Description |
| files.:key | Any file accessed by key, provided :key is acceptable syntax |
| files[:key] | Any file accessed by key |
| files_count | Number of files |
| images.:key | Any image accessed by key, provided :key is acceptable syntax |
| images_count | Number of images |
| videos.:key | Any video accessed by key, provided :key is acceptable syntax |
| videos[:key] | Any video accessed by key |
| videos_count | Number of videos |
files includes all images and videos.
Looping files
Assign files drop and use order_by to skip key and get mediadrop. You must use assign to be able to user order_by filter.
Access files from community group
{% assign files = community.group.files | order by %}
{% for file in files %}
<a href="{{ file.url }}">
{{ file.pretty_name }}
</a>
{% endfor %}Updated: 2020-06-16