[BUGFIX] Fix f:cObject documentation example 49/44749/2
authorJosef Glatz <josef.glatz@typo3.org>
Tue, 17 Nov 2015 09:26:45 +0000 (10:26 +0100)
committerMarkus Klein <markus.klein@typo3.org>
Tue, 17 Nov 2015 13:20:04 +0000 (14:20 +0100)
Fix current value example.

Releases: master, 6.2
Resolves: #71620
Change-Id: Ie82bab5a6767c664951c2e163a08015b5f7e3323
Reviewed-on: https://review.typo3.org/44749
Reviewed-by: Markus Klein <markus.klein@typo3.org>
Tested-by: Markus Klein <markus.klein@typo3.org>
typo3/sysext/fluid/Classes/ViewHelpers/CObjectViewHelper.php

index 703ede6..a6625a9 100644 (file)
@@ -26,7 +26,7 @@ namespace TYPO3\CMS\Fluid\ViewHelpers;
  * </output>
  *
  * <code title="Specify cObject data & current value">
- * <f:cObject typoscriptObjectPath="lib.customHeader" data="{article}" current="{article.title}" />
+ * <f:cObject typoscriptObjectPath="lib.customHeader" data="{article}" currentValueKey="title" />
  * </code>
  * <output>
  * rendered lib.customHeader. data and current value will be available in TypoScript