b:get.field

<b:get.field />

Displays single field from single content.

This tag is a fast way to display only one field from single content when you know the data model and id or path of the content.

This is similar to the <b:id.datamodel.field /> tag, but with this tag you can use dynamic attributes to define the content from which to show fields from.

Tag attributes are passed to the control that displays the field. Note that also the attributes that are required by this tag are passed to the control.

You can also display metadata fields with this tag.

See also

Attributes

from

If id attribute isn't defined, from should be a path to the content.

If id attribute is defined, from should be name of the data model of the content.

id

(optional)
The id of the content.

Examples

Usage

Here are some hints on how to use this tag.
<b:get.topic id="2" from="manual_document" />
<b:get.topic from="/help/documentation/template-development" />

<b:value.pageid set="6" />
<b:get.topic id="<b:value.pageid />" from="page" />


<!-- Following could also be written as <b:structure.datamodel from="/community" /> -->
<b:get.metadata.datamodel from="/community" />
HTML source output
Template development
Template development

Home

<!-- Following could also be written as <b:structure.datamodel from="/community" /> -->
page