Documentation · ViewHelper reference

Form / VariableViewHelper

Sets an option in the Form instance /

  • Tag usage example

    <flux:form.variable name="NULL" value="[mixed]">
    	<!-- tag content - may be ignored! -->
  • Inline usage example

    {flux:form.variable(name: 'NULL', value: [mixed])}


Argument Description Type

Name of the option - valid values and their behaviours depend entirely on the consumer that will handle the Form instance


Value of the option

Required attribute

Revision history

commit 335af51ddd0e22b8a73c4c25cc867f912f6bb7a1
Author: Claus Due <*****>
Date:   Mon Jan 27 01:17:35 2014 +0100

    [FEATURE] White/blacklisting allowed CTypes in Column and Area
    Limits possible selections in the new content element wizard based on parameters defined in the Column or Area (or both) into which content is being inserted.
    ## Usage examples
    In a content/plugin template:
    		<flux:form.content name="content">
    			<flux:form.variable name="allowedContentTypes" value="text,textpic" />
    In a page template:
    	<flux:grid.column colPos="1">
    		<flux:form.variable name="allowedContentTypes" value="text,textpic" />
    Alternative syntax:
    	<flux:grid.column colPos="1" variables="{allowedContentTypes: 'text,textpic'}" />
    Using PHP (Flux Form Components):
    $grid = \FluidTYPO3\Flux\Grid::create();
    $row = $grid->createContainer('Row');
    $column = $row->createContainer('Column');
    	->setVariable('allowedContentTypes', 'text,image');
    To blacklist, use `deniedContentTypes` instead of `allowedContentTypes` as variable name. Both can be used together: first, the whitelist is applied if it has any types contained, and second, the blacklist is applied to remove elements from the list of allowed types (which is either the full list or the previously whitelist-filtered version, if a whitelist was specified).
    Fixes: #197