- b2evolution CMS User Manual
- Developer Reference
- Website Skins/Themes
- Skin Tags / API
- Item Tags
- Template Tag: Item Files
Template Tag: Item Files
Display the attachments/files linked to the current item.
== Example ==
$Item->files( array(
'before' => '<ul class="bFiles">',
'before_file' => '<li>',
'before_file_size' => '<span class="file_size">',
'after_file_size' => '</span>',
'after_file' => '</li>',
'after' => '</ul>',
'limit_files' => 1000
) );
== Parameters ==
* Name: before
* Default: ‘<ul class="bFiles">’
* Usage: Displayed before all of the attachments/files.
* Name: before_file
* Default: ‘<li>’
* Usage: Displayed before the attachment/file.
* Name: before_file_size
* Default: ‘<span class="file_size">’
* Usage: Displayed before the attachment/file size.
* Name: after_file_size
* Default: ‘</span>’
* Usage: Displayed after the attachment/file size.
* Name: after_file
* Default: ‘</li>’
* Usage: Displayed after the attachment/file.
* Name: after
* Default: ‘</ul>’
* Usage: Displayed after all of the attachments/files.
* Name: limit_files
* Default: 1000
* Usage: Maximum of files displayed. if ‘limit_files’ => ‘#’ then no limitation.
== Return value ==
This tag displays content only, it does not have a return value.