[field:] Short Tag
Built-in Feature
The [field:]
short tag displays a specific Custom Field of the current Item.
Note: the
[field:...]
generates inline text and can appear anywhere (inside a paragraph, table, etc.)Syntax Breakdown
[field:
Custom Field Code ]
- Custom Field Code: a single custom field code
Example
[field:first_string_field]
will display the value of this specific field (referenced by field code).
This will NOT display a table, just the value. It can be embedded into virtually anything.
Note: if you have installed the demo contents of b2evolution you can quickly see this in action in the post titled "Custom Field Example".
Recursion
If you are using fields in a Content Block, you can control the level at which they are resolved by using [-field:...]
, [--field:...]
etc. Each -
pushes the resolution up one level to the caller.