Documentation · ViewHelper reference

XSD schema file | vhs 2.1.4

Variable / Register / GetViewHelper

Variable\Register: Get

ViewHelper used to read the value of a TSFE-register Can be used to read names of variables which contain dynamic parts:

<!-- if {variableName} is "Name", outputs value of {dynamicName} -->
{v:variable.register.get(name: 'dynamic{variableName}')}
  • Tag usage example

    <v:variable.register.get name="NULL">
    	<!-- tag content - may be ignored! -->
  • Inline usage example

    {v:variable.register.get(name: 'NULL')}


Argument Description Type

Name of register

Required attribute

Revision history

commit e26804b011d40e489241b6dc18be82c10a56a793
Author: Stefan Neufeind <*****>
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 <*****>
Date:   Thu Jan 15 04:52:28 2015 +0100

    [TASK] More test ports

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

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

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

    [TASK] Reference Copyright to file