ViewHelper Documentation
cObject
This ViewHelper renders CObjects from the global TypoScript configuration. NOTE: You have to ensure proper escaping (htmlspecialchars/intval/etc.) on your own!
= Examples =
<f:cObject typoscriptObjectPath="lib.someLibObject" />
<f:cObject typoscriptObjectPath="lib.customHeader" data="{article}" currentValueKey="title" />
{article -> f:cObject(typoscriptObjectPath: 'lib.customHeader')}
Arguments
typoscriptObjectPath string, required
the TypoScript setup path of the TypoScript object to render
data anySimpleType, required
the data to be used for rendering the cObject. Can be an object, array or string. If this argument is not set, child nodes will be used
currentValueKey string, required
currentValueKey
table string, required
the table name associated with "data" argument. Typically tt_content or one of your custom tables. This argument should be set if rendering a FILES cObject where file references are used, or if the data argument is a database record.