Documentation · ViewHelper reference

Wizard / AddViewHelper

Field Wizard: Add

  • Tag usage example

    <flux:wizard.add label="'Add new record'" hideParent="1" variables="{foo: 'bar'}" table="NULL" pid="[mixed]" setValue="'prepend'">
    	<!-- tag content - may be ignored! -->
    </flux:wizard.add>
  • Inline usage example

    {flux:wizard.add(label: ''Add new record'', hideParent: 1, variables: {foo: 'bar'}, table: 'NULL', pid: [mixed], setValue: ''prepend'')}

Arguments

Argument Description Type
hideParent

If TRUE, hides the parent field

boolean
label

Optional title of this Wizard

string
pid

Storage page UID or (as is default) ###CURRENT_PID###

mixed
setValue

How to treat the record once created

string
table

Table name that records are added to

string
variables

Freestyle variables which become assigned to the resulting Component - can then be read from that Component outside this Fluid template and in other templates using the Form object from this template

array
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 3878c943a6eb0924bb6db2e5ed8461580896431f
Author: Claus Due <*****@namelesscoder.net>
Date:   Tue Dec 10 01:59:34 2013 +0100

    [TASK] Update copyright and author tags
    
    Assumes "Claus Due" as author whenever no author is specified.

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

    [TASK] Happy new year!