- b2evolution CMS User Manual
- Developer Reference
- Website Skins/Themes
- Skin Tags / API
- Item Tags
- Template Tag: Item Custom
Template Tag: Item Custom
Displays a custom field of the Post/Item.
Examples
Quick Template
[Item:custom|field=custom_field1|what=formatted_value|before=<span class="custom_field">|after=</span>]
PHP Template
$Item->custom( array(
'field' => 'custom_field1',
'what' => 'formatted_value',
'before' => '<span class="custom_field">',
'after' => '</span>',
) );
Parameters
Param |
Default |
Usage |
---|---|---|
|
None |
Required field. The index of the custom field to display. |
|
|
Indicate the custom field information to display. Possible values: |
|
|
Displayed before the custom field. |
|
|
Displayed after the custom field. |
Return value
This tag displays content only, it does not have a return value.