Skip to content

Commit

Permalink
[DOC] Usage example for flux:form.container
Browse files Browse the repository at this point in the history
  • Loading branch information
cweiske committed Nov 4, 2015
1 parent 5186d3e commit 5c58664
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions Classes/ViewHelpers/Form/ContainerViewHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,17 @@
*
* The field grouping can be hidden or completely removed. In this regard
* this element is a simpler version of the Section and Object logic.
*
* #### Grouping elements with a container
*
* <flux:form.container name="settings.name" label="Name">
* <flux:field.input name="firstname" label="First name"/>
* <flux:field.input name="lastname" label="Last name"/>
* </flux:form.container>
*
* #### Accessing values of grouped elements
*
* Name: {settings.name.firstname} {settings.name.lastname}
*/
class ContainerViewHelper extends AbstractFieldViewHelper {

Expand Down

0 comments on commit 5c58664

Please sign in to comment.