Documentation · ViewHelper reference

XSD schema file | vhs master

Variable / Register / SetViewHelper

Variable\Register: Set

Sets a single register in the TSFE-register.

Using as {value -> v:variable.register.set(name: 'myVar')} makes $GLOBALS["TSFE"]->register['myVar'] contain {value}. /

  • Tag usage example

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

    {v:variable.register.set(value: [mixed], name: 'NULL')}

Arguments

Argument Description Type
name

Name of register

string
value

Value to set

mixed
Required attribute

Revision history

commit e26804b011d40e489241b6dc18be82c10a56a793
Author: Stefan Neufeind <*****@speedpartner.de>
Date:   Sun Jul 20 01:42:19 2014 +0200

    [FEATURE] ViewHelpers to set/get TSFE-registers
    
    Allows accessing values previously set in TypoScript
    via LOAD_REGISTER, or to set values to access elsewhere
    from the registers.

commit 716b251b6470782dbc09ca6e883b00cb75e5e440
Author: Claus Due <*****@namelesscoder.net>
Date:   Thu Jan 15 04:52:28 2015 +0100

    [TASK] More test ports

commit 4981055359c895f3869e5bd878293b3c15ed26e5
Author: Xaver Maierhofer <*****@xwissen.info>
Date:   Sun Jan 18 14:01:04 2015 +0100

    [TASK] CGL - Define classes, params, use imports

commit 8bb2fc5ee124ba19b0a0ab8e061c9a153fc4651f
Author: Xaver Maierhofer <*****@xwissen.info>
Date:   Sun Jan 18 17:56:13 2015 +0100

    [TASK] Reference Copyright to license.md file