Skip to the content
Documentation
Help Start
Reading in:
  • German: 9,075 of 9,075 pages
About the help in other languages
All help pages

Make interface to ezmedia datatype similar to ezbinaryfile

The ezbinaryfile datatype provides the 'filesize' and 'filepath' attribute to the template language while ezmedia does not. Attribute which relate directly to files should be the same in media and binaryfile.

Download as PDF

Address: https://doc.exponential.earth/exphelp/viewer/features/3.5/datatype_media_attributes.txt

*Title: Make interface to ezmedia datatype similar to ezbinaryfile

Incentive:
The ezbinaryfile datatype provides the 'filesize' and 'filepath' attribute
to the template language while ezmedia does not. Attribute which relate
directly to files should be the same in media and binaryfile.

*Documentation:
The ezbinaryfile datatype now has two new attributes called 'filesize' and
'filepath' which behave in the same way as the attributes in ezbinaryfile.

Example template usage:
filesize: {$attribute.content.filesize|si( byte )}
filepath: {$attribute.content.filepath}

Something wrong on this page? Report an error

Documentation license

This page was inherited from the documentation of the original software. It is not covered by the GNU Free Documentation License; it is distributed under the GNU General Public License, version 2.

Copyright (C) 1999 - 2014 eZ Systems AS and contributors