Skip to content

Commit

Permalink
[DOC] Example for flux:form.data (FluidTYPO3#1428)
Browse files Browse the repository at this point in the history
* [DOC] Example for flux:form.data

* Add notice about transformation occurring
  • Loading branch information
cweiske authored and NamelessCoder committed Jul 1, 2017
1 parent 53fb2f7 commit e8030af
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion Classes/ViewHelpers/Form/DataViewHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,15 @@
use TYPO3Fluid\Fluid\Core\ViewHelper\Traits\CompileWithRenderStatic;

/**
* Converts raw flexform xml into an associative array
* Converts raw flexform xml into an associative array, and applies any
* transformation that may be configured for fields/objects.
*
* ### Example: Fetch page configuration inside content element
*
* Since the `page` variable is available in fluidcontent elements, we
* can use it to access page configuration data:
*
* <flux:form.data table="pages" field="tx_fed_page_flexform" record="{page}" />
*/
class DataViewHelper extends AbstractViewHelper implements CompilableInterface
{
Expand Down

0 comments on commit e8030af

Please sign in to comment.