Documentation · ViewHelper reference

XSD schema file | vhs master

Context / GetViewHelper

Context: Get

Returns the current application context which may include possible sub-contexts. The application context can be 'Production', 'Development' or 'Testing'. Additionally each context can be extended with custom sub-contexts like: 'Production/Staging' or 'Production/Staging/Server1'. If no application context has been set by the configuration, then the default context is 'Production'.

Note about how to set the application context

The context TYPO3 CMS runs in is specified through the environment variable TYPO3_CONTEXT. It can be set by .htaccess or in the server configuration

See: /

  • Tag usage example

    	<!-- tag content - may be ignored! -->
  • Inline usage example



Argument Description Type
Required attribute

Revision history

commit bacde179fddc586d12c65868280cdd1c6f7b6289
Author: Benjamin Beck <BenjaminB*****>
Date:   Tue Dec 9 22:25:20 2014 +0100

    [FEATURE] Context view helpers

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

    [TASK] Reference Copyright to file