Hey Tony,
I'm afraid we're a bit short on documentation, other then the source code
it's self :)
Basically Shindig is an OpenSocial spec implementation that does everything
for you, except the database integration and the container UI work. (With
container we mean the website that will contain the opensocial apps).
Shindig knows 3 basic classes you need to implement (see the sample &
partuza implementations for examples):
- People: the profile and relationship data
- Activities: activity stream ("chris ate a peanut today")
- AppData: persistent application data storage, used to store small and
simple things like highscores of games, etc
Each class has a few functions defined, and the return values are not
documented, but the 2 examples (jsondb one and partuza's) are your guide
here, just return exactly the same as those examples do (and learn how to
parse the params you get in those functions from the examples too), and it
should be relatively easy to implement your own version, that reads it's
data from drupal's db :)
Also you'll need to create an iframe when viewing a gadget on a page, and it
requires a security token.. best reference on how to do this magic in php is
partuza:
http://code.google.com/p/partuza/source/browse/trunk/Application/Views/gadget/gadget.php
also keep in mind that gadgets know 'views' (profile, canvas), so you
probably will have to add a 'canvas page' to drupal (profile is the small
box format, canvas is the full page view)
and you will need to implement a few basic RPC services (gadget to container
rpc through javascript that is), see partuza's container.js for example:
http://code.google.com/p/partuza/source/browse/trunk/html/js/container.js
Add a gallery (browse avail gadgets), and other basic UI elements
(preferences, remove gadget, etc) and your done :)
Hope that helps!
-- Chris
On Mon, Sep 29, 2008 at 4:56 AM, Tony Mobily <[EMAIL PROTECTED]> wrote:
> Hi,
>
>
> Shindig doesn't *have* tables. It's intended that the conatiner (Drupal, in
> > your case) will provide that data that it needs to feed to the gadgets.
> So,
> > what you need to write is some glue code that reads Drupal's data and
> > presents
> > it in the format Shinding needs it.
> >
> > Look for the Partuza project, that's a sample PHP container that uses
> > Shindig.
> >
>
> This is exactly what I was hoping.
> Other than looking at Partuza's glue code, is there some documentation
> somewhere that explains what the glue code should be and what it should do?
>
> Bye,
>
> Merc.
>