.. include:: /Includes.rst.txt .. _typo3fluid-fluid-variable: ======== variable ======== Variable assigning ViewHelper Assigns one template variable which will exist also after the ViewHelper is done rendering, i.e. adds template variables. If you require a variable assignment which does not exist in the template after a piece of Fluid code is rendered, consider using `f:alias` instead. Usages: {f:variable(name: 'myvariable', value: 'some value')} some value {oldvariable -> f:format.htmlspecialchars() -> f:variable(name: 'newvariable')} {oldvariable} Arguments ========= .. _variable_value: value ----- :aspect:`DataType` mixed :aspect:`Required` false :aspect:`Description` Value to assign. If not in arguments then taken from tag content .. _variable_name: name ---- :aspect:`DataType` string :aspect:`Required` false :aspect:`Description` Name of variable to create