Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3
Panel

Table Of Contents

Table of Contents
outlinetrue

Overview

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

Display single custom field:

Code Block
<?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:

Code Block
<?=$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:

Code Block
<?=$item->fields->show()?>