File Grid
Contents of a File Grid field are accessed just as a regular Grid field would be, refer to the Grid field documentation for a full reference. A notable difference is the default File column automatically has a short name of file
:
note
The following examples use a field named files_field
. This should be replaced with your field name.
- Twig
- Blade
{% for row in entry.files_field %}
{{ row.file.filename }}
{% endfor %}
@foreach($entry->files_field as $row)
{{ $row->file->filename }}
@endforeach
info
See the ExpressionEngine Documentation for more information on the File Grid fieldtype