Skip to content
Snippets Groups Projects
Commit 5fa6c73c authored by Markus Klein's avatar Markus Klein Committed by Wouter Wolters
Browse files

[BUGFIX] Better documentation of cObject viewhelper

Add more information about the table argument and when it should
be set.

Resolves: #81545
Releases: master, 8.7
Change-Id: Ic95794869b384e0932d59747df545f15afe2825f
Reviewed-on: https://review.typo3.org/53188


Tested-by: default avatarTYPO3com <no-reply@typo3.com>
Reviewed-by: default avatarRobert Wildling <robertwildling@gmail.com>
Tested-by: default avatarRobert Wildling <robertwildling@gmail.com>
Reviewed-by: default avatarWouter Wolters <typo3@wouterwolters.nl>
Tested-by: default avatarWouter Wolters <typo3@wouterwolters.nl>
parent 1522bad3
No related branches found
No related tags found
No related merge requests found
......@@ -82,7 +82,7 @@ class CObjectViewHelper extends \TYPO3\CMS\Fluid\Core\ViewHelper\AbstractViewHel
$this->registerArgument('data', 'mixed', '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');
$this->registerArgument('typoscriptObjectPath', 'string', 'the TypoScript setup path of the TypoScript object to render', true);
$this->registerArgument('currentValueKey', 'string', 'currentValueKey');
$this->registerArgument('table', 'string', 'table', false, '');
$this->registerArgument('table', 'string', '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.', false, '');
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment