drcorbeille
26.08.2004, 07:46
I'm converting a module to 4.5.1 parameter system, works fine but for one detail. I have to set at least one parameter manualy in the admin backend for the default params to work after installing the module. I noticed the same behaviour in mod_googleads 1.01. Is this a bug in 4.5.1 or am I doing wrong something?
Here is what I have:
<param name="ShowURL" type="list" default="yes" label="ShowUrl" description="Show the source URL">
<option value="yes"> Yes </option>
<option value="no"> No </option>
</param>
shows ok in admin backend
$ShowURL = $params->get('ShowURL') ;
is set to 'yes' only if I set at least one parameter in the backend.
Thanks for any help,
Chris
Here is what I have:
<param name="ShowURL" type="list" default="yes" label="ShowUrl" description="Show the source URL">
<option value="yes"> Yes </option>
<option value="no"> No </option>
</param>
shows ok in admin backend
$ShowURL = $params->get('ShowURL') ;
is set to 'yes' only if I set at least one parameter in the backend.
Thanks for any help,
Chris