Andrew Hatton wrote:
>
> Does anyone know if there is a specific Midgard function for using the
> record_extension.
>
> I have used the Nadmin "Parameters" tab to store a certain group,name,value
> against a couple of articles and would like to be able to call up (or rather
> produce links)to these realated articles.
>
> Obviously I could break out of Midgard and do this directly via PHP/MySQL
> but there is probably a better way of doing it.
>
It's a little confusing that record_extensions and parameters are
actually the same thing, the way to access object parameters is
$parametervalue=$object->parameter("Parameterdomain", "parametername");
to set a parameter value use $object->parameter("Parameterdomain",
"parametername", "parametervalue");, if you set value to be empthy ("")
then the parameter is removed from db as well.
Then there are the preferences, that are linked to person objects (their
advantage over parameters is that they're only readable by their owner
user and the admin user, whilst parameters are always readable).
--
Eero af Heurlin [EMAIL PROTECTED]
Consultant Partner Tel: +358 (0)20 198 6035
Nemein Solutions Oy http://www.nemein.com/
Nadmin Studio and Midgard support at 0600-1-2552 available
for Finnish customers.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]