Forums / Setup & design / Doc about array[] in config files
Pascal France
Thursday 23 November 2006 6:09:23 am
Hi,
I'm looking for the doc page which explains the sens of the "array[]" syntaxe in the config files.
In this page: http://ez.no/doc/ez_publish/technical_manual/3_8/concepts_and_basics/configurationI founded:
If the name of a setting ends with a pair of square brackets, it means that the setting accepts an array of values.
but nothing about the initialization of an array.
Regards
Pascal
Ce qui embellit le désert c'est qu'il cache un puits... quelque part... (A. de Saint-Exupéry) - http://luxpopuli.fr/eZ-Publish
Matthew Carroll
Thursday 23 November 2006 3:30:01 pm
You clear an array in the config files like this:
ArrayName[]
...so in the example given on the page you linked to, if you wanted to first clear the array to make sure there were no other extensions being loaded, the settings would become:
[ExtensionSettings] ActiveExtensions[] ActiveExtensions[]=ezdhtml ActiveExtensions[]=ezpaypal
...that is useful to stop default settings from showing up in your siteaccess' array settings. I think the most common use for this I have found is AvailableSiteAccessList[], which I use to prevent other siteaccesses from showing up in the options lists in the admin interface.
Matthew
http://carroll.org.uk