Documentation · ViewHelper reference

XSD schema file | vhs master

Condition / Context / IsProductionViewHelper

Context: IsProduction

Returns true if current root application context is production otherwise false. If no application context has been set, then this is the default context.

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

    <v:condition.context.isProduction then="[mixed]" else="[mixed]" condition="1">
    	<!-- tag content - may be ignored! -->
  • Inline usage example

    {v:condition.context.isProduction(then: [mixed], else: [mixed], condition: 1)}


Argument Description Type

Condition expression conforming to Fluid boolean rules


Value to be returned if the condition if not met.


Value to be returned if the condition if met.

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