input|classgroup_icon( [ size [, alt_text [, return_uri ] ] ] )
Name | Type | Description | Required |
---|---|---|---|
size | string | The preferred icon size (small, medium, large, etc.). | No. |
alt_text | string | The alternative image text. | No. |
return_uri | boolean | The return format (image tag or just the address). | No. |
This operator generates an image tag that references a class group icon. The name of the icon must be provided using the input parameter. The "size", "alt_text" and "return_url" parameters are optional (see the description above). The operator uses the settings provided by the "icon.ini" configuration file (or an override).
{'content'|classgroup_icon( 'small', 'Alternative image text' )}
The following output will be produced:
<img src="/share/icons/crystal-admin/16x16_indexed/filesystems/folder_txt.png" width="16" height="16" alt="Content" title="Content" />