Henri Bergius wrote:

> Alan Knowles wrote:
>
>> http://www.akbkhome.com/Projects/Phpmole%2DIDE
>> has lots of cute screen shots.
>
>
> Looks *very* good.
>
> What is the method used for communicating with the Midgard server? 
> XML-RPC? SQL? Midgard API? 


Its a bit scrappy, but the principle is not bad

URL =
/some/path/to/midgard/page/?table=snippet&id=12&depth=1
where
table = snippet|topic|article etc.
 - it call also use
 sg__snippetdir = to do a filtered list - where id = sitegroup
sga__style = do a filtered list and recurse - eg. show all style with 
sitegroup id=1 and look down the tree to find all child styles

id= either object/parent id or sitegroup for sg__ and sga__ requests.

depth (should really be called request_type)
0=get object
1=get list of objects
2=save object (uses $new["column_name"] where it overlays posted values 
onto the object and does object->update();
 -- also does sitegroup mods
3=new object
4=delete object
5 = not used (was to be test authentication - but not needed)
6=delete tree - deletes a tree of objects
8= upload attachment (sent as a base64 encoded file)
9= get list of attachments
99=get raw attachment

Data sent back is pretty much repligard compatible format, (XML) with a 
few hacks like sgguid added

It would be nice to have it built into the server :)

-- The current focus is getting image resizing working at the client end 
- so you can pick say 10 images and create thumbnails and/or rotate 
them. = either locally or on attachments in the midgard server.

regards
alan

>
>
>> alan
>
>
> /Bergie





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

Reply via email to