Hi Henry and all the midgardeers

I still confuse with parameter in aegir, what is it use for? could you
please explain more Henry?

> |
> | Regarding the table entitled "article" in midgard's standard aegir
> | database: is this the only place to store text-type content? Are the
> | fields in this database generally flexible for the sort of content most
> | midgard users want to put in their websites?:
> 
> Most of the Midgard tables have fields of type "longtext"
> which can take _a lot_ of data. The fields are preset and
> acknowledged by Midgard API and applications. Personally
> I wouldn't go on altering the Midgard tables.
> 
> There is record_extension table for extending fields.
> The problem with this table is the size of "value" field
> (which is 255 characters if I remember correctly).
> 
> | If we add several fields to this database (in addition to the
> | "extra1,extra2,extra3", for example fields for several secondary topic
> | areas which an article relates to; after we have done this, can we still
> | use the standard Aegir wysiwyg interface to create and manage articles,
> | or will we need to code our own changes;
> 
> For this purpose I would use record_extension table which
> stores parameters. For example:
> 
> $article = mgd_get_article($artid);
> $article->parameter('relation','secondarytopic','ID_or_GUID_of_target_here');

what do you mean by this function :
parameter('relation','secondarytopic','ID_or_GUID_of_target_here');

> However, you can't have two parameters with same domain and name
> in a single object. So you might want to use serialize() function
> to store several relations into one parameter or use several names
> (i.e. parameter('relation','tertiarytopic')).
> 
> Somebody has already produced something like this
> (dig the user-list archives). Was it the Australian or New Zealand team?  :)
> 
> Usage of parameters won't break Aegir. Aegir as it is does not
> understand the relations though...
> 
> Changing the DB tables, I don't know...(any developers around?)
> 
Thanks for all explanation


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to