Skip to main content
All TypoTonic ViewHelpers are available through the t: namespace. TypoTonic registers this namespace automatically once the extension is active. To get autocompletion for the namespace in your IDE, add it to your template’s <html> tag:

Template.RenderViewHelper

Renders a template file, either a file you predefined in TypoScript, or a manual file path.
  • template (string) — A file path, or a template identifier configured in plugin.tx_tonic.templates.
  • arguments (array) — Arguments passed into the rendered template.
  • variables (array) — IDs of additional Template Variables to inject.
  • cache (boolean) — Enables or disables caching of the output.
  • lifetime (int) — Cache lifetime in seconds.
  • cacheIdentifier (string) — A custom cache identifier.

Datatype.GetViewHelper

Fetches a Datatype by its UID.
  • uid (int) — The UID of the Datatype.
  • onlyEnabled (boolean) — Fetches the Datatype only if it is enabled.
Returns: Aix\\Tonic\\Domain\\Model\\Datatype

Record.GetViewHelper

Fetches a record by its UID.
  • uid (int) — The UID of the record.
  • datatype (Aix\\Tonic\\Domain\\Model\\Datatype) — Limits the search to this Datatype.
  • onlyEnabled (boolean) — Fetches the record only if it is enabled.
Returns: Aix\\Tonic\\Domain\\Model\\AbstractRecordModel
Creates a link tag to a record’s detail page. The detail page ID normally comes from the plugin, through {detailPid}. For additional link parameters, see the TYPO3 f:link.page ViewHelper.

Uri.RecordViewHelper

Creates a URL to a record’s detail page. The detail page ID normally comes from the plugin, through {detailPid}. For additional link parameters, see the TYPO3 f:uri.page ViewHelper.

Filter.RecordsViewHelper

Adds extra filter conditions to a list of records already injected into your template. Use this to build custom, dynamic filters in Fluid.

Basic filter structure

  • condition (string) — AND or OR.
  • filters (array) — A list of filter rules.

Each filter rule

  • field (string) — The field name to filter on.
  • operator (string) — See the operator table below.
  • value (mixed) — The value to compare against.

Operators

  • equal=
  • not_equal!=
  • inIN
  • not_inNOT IN
  • less<
  • less_or_equal<=
  • greater>
  • greater_or_equal>=
  • betweenBETWEEN
  • begins_withLIKE 'xyz%'
  • not_begins_withNOT LIKE 'xyz%'
  • containsLIKE '%xyz%'
  • not_containsNOT LIKE '%xyz%'
  • ends_withLIKE '%xyz'
  • not_ends_withNOT LIKE '%xyz'
  • is_empty= ''
  • is_not_empty!= ''
  • is_nullNULL
  • is_not_nullNOT NULL

Group.RecordsByPropertyViewHelper

Groups a list of records by a property value. Returns a multidimensional array, grouped by the values found for the property you name.