Torben Nehmer wrote:

> I'm just building a new website with midgard 1.4 beta 5 and try to get the
> blobs working. To be honest... I don't even know where to start. Is there
> a documentation that goes a little bit further than the current manual? Or
> can someone give me some hints how to
>  - create an attachment

If you have an object obtained by a mgd_get_<object> call, like

$page = mgd_get_page(...);

it will have the attachment methods available:

$att = $page->createattachment(...);
$filehandle = mgd_open_attachment($att);
/* write to the filehandle here */
fclose($filehandle);

>  - get it into the blob dir

Done automatically when you open the attachment for writing.

>  - assosiate it with an element of midgard

Done automatically when you create it (which is why there is no
non-method equivalent function for creating blobs).

Emile

Reply via email to