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>,

$page = mgd_get_page($id)

this object will have the attachment methods.

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

>  - get it into the blob dir

It will be put there whenever you open the attachment for
writing.

>  - assosiate it with an element of midgard

Done at creation time


Emile

Reply via email to