On 12 July 2011 18:36, A.Mikroyannidis <[email protected]> wrote:
> Hi all
>
> Within the ROLE project (http://www.role-project.eu/), we've been using the 
> Wookie connector to integrate ROLE widgets in Moodle and Elgg (see: 
> http://sourceforge.net/apps/mediawiki/role-project/index.php?title=HowTo_integrate_ROLE_widgets_into_external_containers).
>
> We are now building widgets that recommend learning tools and content. A 
> recommender widget should be able to identify the widgets that are present in 
> the same page in order to make recommendations about additional ones. My 
> question is: Is this possible through the Wookie connector in Moodle or Elgg? 
> Can a widget retrieve information regarding which other widgets have been 
> embedded in the same Moodle or Elgg page?

Currently the plugin framework does not provide this kind of feature.
However, it would certainly be a useful feature to add and we'd
(probably) be happy to accept such a contribution.

It's fairly easy to implement, assuming the host environment allows
this kind of interrogation). In psudeo code I'd suggest something
like...

function getContainerWidgets() {
  askHostForListOfBlocksInParentContainer
  forEachBlock
    if blockIsAWookieWidget then add widgetGUID to listOfPageWidgets
  endFor
  return listOfPageWidgets
}

So the question is can Moodle and/or Elgg provide a list of blocks it
is hosting at the same container level as a given widget?

If it can then you are good to go. We'd be happy to help more on
figuring out how to do the Wookie side of things.

Ross

>
> Regards,
> Alex
>
> --
> Dr Alexander J. Mikroyannidis
> Research Fellow
> Knowledge Media Institute
> The Open University
> Milton Keynes
> MK7 6AA, UK
>
> +44 (0) 1908 652073
> http://kmi.open.ac.uk/people/member/alexander-mikroyannidis
>
>
> --
> The Open University is incorporated by Royal Charter (RC 000391), an exempt 
> charity in England & Wales and a charity registered in Scotland (SC 038302).
>
>



-- 
Ross Gardler (@rgardler)
Programme Leader (Open Development)
OpenDirective http://opendirective.com

Reply via email to