Documentation · ViewHelper reference

Form / DataViewHelper

Converts raw flexform xml into an associative array

  • Tag usage example

    <flux:form.data table="NULL" field="NULL" uid="123" record="{foo: 'bar'}" as="NULL">
    	<!-- tag content - may be ignored! -->
    </flux:form.data>
  • Inline usage example

    {flux:form.data(table: 'NULL', field: 'NULL', uid: 123, record: {foo: 'bar'}, as: 'NULL')}

Arguments

Argument Description Type
as string
field string
record array
table string
uid integer
Required attribute

Revision history

commit 3390bd05f546bccfc9ca5cb012d291f7bdd63512
Author: Claus Due <*****@namelesscoder.net>
Date:   Mon Dec 2 23:26:43 2013 +0100

    [TASK] Rename ViewHelpers
    
    Renames:
    
    flux:flexform -> flux:form
    flux:flexform.field.* -> flux:field.*
    flux:flexform.field.wizard -> flux:wizard.*
    flux:flexform.* -> flux:form.*

commit b42483bd3365647059846f7175b2687f620717ba
Author: Claus Due <*****@namelesscoder.net>
Date:   Sat Dec 14 19:02:42 2013 +0100

    [TASK] Fix some failing tests

commit 7fdd32208b5a5a7ff80220f7463529a6cc882712
Author: Claus Due <*****@namelesscoder.net>
Date:   Sat Dec 14 20:31:21 2013 +0100

    [TASK] Adjust a few failing tests

commit efcc8c90b3165391c3ab4b4dcece3560c8b8adc1
Author: Claus Due <*****@namelesscoder.net>
Date:   Sun Dec 15 19:15:16 2013 +0100

    [FEATURE] Allow record+field instead of table+field+uid in DataViewHelper

commit 8bf2b5beb89c7d72a41230f152d9a5a3d308ba84
Author: Claus Due <*****@namelesscoder.net>
Date:   Tue Dec 31 23:11:00 2013 +0100

    [TASK] Happy new year!

commit 55a60ea74da69079bb526cb61ada48425fa8f87b
Author: Claus Due <*****@namelesscoder.net>
Date:   Tue Apr 8 03:04:31 2014 +0200

    [TASK] Improve tests

commit 543d33e81b5b092cfd3006e04e654844373f262e
Author: Claus Due <*****@namelesscoder.net>
Date:   Fri Jun 13 17:40:00 2014 +0200

    [TASK] Implement workspace aware RecordService in ViewHelpers

commit 8bcf7ff4c8f8bca31cac85b5bb734ef919b6d695
Author: Claus Due <*****@namelesscoder.net>
Date:   Fri Jun 13 18:41:09 2014 +0200

    [TASK] Fix incorrect expectation in DataViewHelper

commit 2c735cbe583ea7f3f22d944f9c8e0024b5f47c01
Author: Björn Fromme <*****@bjo3rn.com>
Date:   Fri Jul 18 13:27:15 2014 +0200

    [TASK] Enable inline usage of flux:form.data

commit 6f5a3094e448fb38a3cad85712160d5be16dae50
Author: Claus Due <*****@namelesscoder.net>
Date:   Mon Oct 6 21:51:21 2014 +0200

    [TASK] Coverage, ViewHelper scope
    
    One noteworthy refactoring: introduce constant for LLL relative path on Form/FormViewHelper.