Have a look at
http://demo.hklc.com/cgi-bin/cvsweb/page/Framed%20Admin%201b1.page/dhtml.page/nodhtmlpickimage_attach.page/content.php3?rev=1.3&content-type=text/x-cvsweb-markup

http://demo.hklc.com/cgi-bin/cvsweb/page/Framed%20Admin%201b1.page/attachment.page/content.php3?rev=1.3&content-type=text/x-cvsweb-markup

regards

alan

Emiliano <[EMAIL PROTECTED]> said: 

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



-- 
Technical Director
Linux Center (HK) Ltd.
www.hklc.com


Reply via email to