Custom Fields Display
Overview
To display a custom field or a custom field group inside the layouts, use this schema.
ITEM VIEW
Display single custom field:
<?php echo $this->item->fields->getOne(ID)->show();?>
Where "5" is the ID of the custom field. ID's can be found under custom fields list, the last column.
Display a group:
<?php echo $this->item->fields->showGroup("item")?>
Where "second" is the name of the group
item | views/item | |
items | views/items | |
tabs | views/item | under the custom tabs |
features | views/item | under features tab |
Display all:
<?=$item->fields->show()?>