The mimetype_icon template operator
Registered in kernel/common/eztemplateautoload.php by the class eZWordToImageOperator (kernel/common/ezwordtoimageoperator.php).
The same class also registers: wordtoimage, class_icon, classgroup_icon, action_icon, icon, flag_icon, icon_info.
Parameters
The class does not describe its parameters (no namedParameterList()); see its source for what it reads.
Example
Built from the parameter list above; the values are placeholders (the operator's template hints decide whether it takes an input).
$value|mimetype_iconIn a shipped template
The first use in the templates of this installation, design/base/override/templates/datatype/ezbinaryfile.tpl line 9:
<a href=concat("content/download/",$attribute.contentobject_id,"/",$attribute.id,"/file/",$attribute.content.original_filename)|ezurl>$attribute.content.mime_type|mimetype_icon( $icon_size, $icon_title ) $attribute.content.original_filename|wash(xhtml)</a> $attribute.content.filesize|si(byte)Related
Generated by ./console exp:help:examples from kernel/common/eztemplateautoload.php, kernel/common/ezwordtoimageoperator.php. Do not edit this page: change the source and generate again (how). Free documentation: GFDL 1.3 or later.