Binder Documentation

Fieldtype Tags

Binder's fieldtype has the following tags available for use :

{url}
The url for the file
{path}
The server path for the file
{added_on}
The date the file was added. Format using standard ee format params, like {added_on format="%d/%m/%y"}
{source}
The source of the upload. This might be 'CP' for files uploaded via the control panel, 'Channel Form' for files uploaded via channel:form, or 'Standalone' for fields uploaded using the {exp:binder:form} standalone tag
{original_name}
The original file name as it was at upload. This filename may have been adjusted to sanitize and avoid naming collisions
{size}
The raw size of the file in bytes
{size_clean}
The size of the file cleaned to be like '75 B', '23 KB', '12 MB' etc..
{extension}
The extension for the file. Like : 'png', 'pdf', 'zip'
{type}
The type of file based on the extension. Currently will only return either 'image', or 'file'. (This will be expanded later as Binder becomes more filetype aware)

Shortcuts

If you only want data about the first file in your binder field, you can use the shortcut tags in place of the tag pair. All the same variables within the tag pair are available here. Usage like :

{my_binder_field:url}
{my_binder_field:path}
{my_binder_field:added_on}
{my_binder_field:source}
{my_binder_field:original_name}
{my_binder_field:size}
{my_binder_field:size_clean}
{my_binder_field:extension}
{my_binder_field:type}

Support

Having problems setting up and/or using Binder? Support is offered from 10am to 4pm EST weekdays. Send us an email at help@eeharbor.com and we will respond as quickly as we can.