Generates a link for users to download a file
{hidden_files:url}
The full URL to download the file{hidden_files:title}
The title assocaited with the File (if any)entry_id
The entry the file is associated withfield
The short name for the field the file is assignedfield_id
The actual ID for the field. Improves performance.col
For Grid columns, the column the file is assignedrow_id
For Grid columns, The specific row the file is assigned (usually {row_id}
)file_id
The specific file to download. No other params needed when used.Channel Entry
{exp:hidden_files:download_link entry_id="{entry_id}" field="test_file"}
<p><a href="{hidden_files:url}">Download {hidden_files:title}</a></p>
{/exp:hidden_files:download_link}
Grid
{exp:hidden_files:download_link entry_id="{entry_id}" field_id="4" col="image" row_id="{blog_image:row_id}"}
<p><a href="{hidden_files:url}">Download {hidden_files:title}</a></p>
{/exp:hidden_files:download_link}
File
{exp:hidden_files:download_link file_id="1"}
<p><a href="{hidden_files:url}">Download {hidden_files:title}</a></p>
{/exp:hidden_files:download_link}