Author:
bzerangue
Version:
1.1.1
Released:
3 April 2015
Category:
Other

Description

ParameterList

A basic way to manually add parameters to Symphony CMS

Version: 1.1.1
Requirements: Symphony CMS 2.3 and above

Thanks to @firegoby (Chris Batchelor), who was kind enough to show me how to accomplish this and basically write this script for me.

How to use...

Open the extension.driver.php file and look for the following code block.

``` public function __addParam($context) {

/* ADD PARAMETERS BELOW HERE */

// Adding a unix-timestamp parameter
$context['params']['unix-timestamp'] = getdate()[0]; 



/* END OF PARAMETERS */

} ```

In this case, the default entry that is with this basic extension, is a parameter to output a unix-timestamp... the following code accomplishes that...

// Adding a unix-timestamp parameter $context['params']['unix-timestamp'] = getdate()[0];

This extension is no replacement for the Global Parameter Loader (which is a far superior extension in an every way). But due to some environments, eval can cause strange 500 errors. Turning off eval will prevent you from using PHP expressions in your parameters.

This basic extension, allowed me to accomplish what I was trying to do with PHP expressions in parameters.

Repository

https://github.com/bzerangue/parameterlist

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