Page tree
Skip to end of metadata
Go to start of metadata

Table Of Contents

Overview

To display a custom filed or a custom field group inside the template, use this schema:

Display single custom field:

<?php $custom5 = $this->item->fields->getOne(5);?>
<?=$custom5->show()?>

Where "5" is the ID of the custom field. ID's can be found under custom fields list, last column.

Display a group:

<?=$this->item->fields->showGroup("second")?>

Where "second" is the name of the group

Group NameGroup DestinationComments
firstviews/item 
secondviews/items 
tabsviews/itemunder the custom tabs
locationviews/itemunder location (map) tab

Display all:

<?=$item->fields->show()?>
  • No labels