Documentation · ViewHelper reference

XSD schema file | vhs master

Condition / Context / IsDevelopmentViewHelper

Context: IsDevelopment

Returns true if current root application context is development otherwise false. If no application context has been set, 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: http://docs.typo3.org/typo3cms/CoreApiReference/ApiOverview/Bootstrapping/Index.html#bootstrapping-context /

  • Tag usage example

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

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

Arguments

Argument Description Type
condition

Condition expression conforming to Fluid boolean rules

boolean
else

Value to be returned if the condition if not met.

mixed
then

Value to be returned if the condition if met.

mixed
Required attribute

Revision history

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

    [FEATURE] Context view helpers

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

    [TASK] Reference Copyright to license.md file