Author:
Makenosound
Version:
1.0.0
Released:
15 June 2011
Category:
Workflow

Description

Adds a preference to expose the current environment as a parameter.

Usage

Once you set the environment in your preferences you can use it in your templates to target specific environments. For example, you probably don't want to have your Google Analytics code on your development or staging sites. This extension lets you easily differentiate between the two and only serve GA code up to the production site:

<xsl:if test="$environment = 'production'">
  <!-- Insert tracking code -->
</xsl:if>

Repository

https://github.com/makenosound/symphony-environment

Discuss this Extension

Compatibility

2.7.10 Unsure
2.7.9 Unsure
2.7.8 Unsure
2.7.7 Unsure
2.7.6 Unsure
2.7.5 Unsure
2.7.4 Unsure
2.7.3 Unsure
2.7.2 Unsure
2.7.1 Unsure
2.7.0 Unsure
2.6.11 Unsure
2.6.10 Unsure
2.6.9 Unsure
2.6.8 Unsure
2.6.7 Unsure
2.6.6 Unsure
2.6.5 Unsure
2.6.4 Unsure
2.5.4 Unsure

Symphony • Open Source XSLT CMS

Server Requirements

  • PHP 5.3-5.6 or 7.0-7.3
  • PHP's LibXML module, with the XSLT extension enabled (--with-xsl)
  • MySQL 5.5 or above
  • An Apache or Litespeed webserver
  • Apache's mod_rewrite module or equivalent

Compatible Hosts

Sign in

Login details