1.1.1releasedParameterList

Add a static list parameters

Clone URLhttps://github.com/bzerangue/parameterlist.git

Add as a submodulegit submodule add https://github.com/bzerangue/parameterlist.git extensions/parameterlist --recursive

Compatibility

2.x.x2.1.x2.2.x2.3.x2.4.x2.5.x2.6.x2.7.02.7.12.7.22.7.32.7.42.7.52.7.62.7.72.7.82.7.92.7.10
NoNoNo1.1.11.1.11.1.11.1.1NoNoNoNoNoNoNoNoNoNoNo. Soon?

Readme

ParameterList

A basic way to manually add parameters to Symphony CMS

Version: 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.

Version history

Symphony 2.3 to 2.6.x

  • Fixed error in extension.meta.xml.

Symphony 2.3 to 2.6.x

  • Corrected extension.meta.xml to show Symphony 2.6.x support.

Symphony 2.3 to 2.6.x

  • Initial public release