Hi,
No worries,
In Moodle I used the "block_id" which is what Moodle calls any of its
persisted screen objects. I've done a bit of digging around and it
seems that in Elgg you can use the ElggWidget GUID, which you can
obtain using:
$request.= '&shareddatakey='.$this->vars['entity']->getGUID();
instead of
$request.=
'&shareddatakey='.$this->vars['entity']->wookie_shareddatakey;
Thanks for your help, I have adapted the plugin using dynamic shared
data key as you suggested.
It would be nice to have the available widgets show up in the Elgg
widget gallery rather than this two-step process of adding then
editing... but that would require a bit more digging into how Elgg
does things; there doesn't seem to be support for programmatically
adding widgets in the default plugin mechanism... one for later perhaps.
Yes, that would be really nice. If I have some time I will have a look
into this.
S
On 3 Nov 2009, at 17:24, Bernhard Hoisl wrote:
Hi,
thanks for testing the plugin.
I'm not quite sure what to take for the shareddatakey. In your old
Elgg plugin you took the page_owner() which is quite the user id of
the logged in user. But should this key be bound to one person or to
a widget instance which may be used by several persons?
I didn't figured it out fully what the Moodle plugin does. Can you
give me some help what to take as the shareddatakey?
Thanks,
Bernhard
The Elgg Community schrieb:
You have a new comment on your item "Wookie Widgets" from Scott
Wilson. It
reads:
I gave it a go and got it working with a Wookie server on
my local machine
- hurray!
Note that the shared data key should be set dynamically to the
unique id
of the widget object - so the id of whatever the entity is in Elgg that
contains the widget - rather than a static value. Otherwise there will
always be one shared state across all widgets in Elgg (i.e. all chat
widgets everywhere will participate in the same conversation, not
just the
ones in the same dashboard/profile)
To reply or view the original item, click here:
http://community.elgg.org/pg/plugins/hoisl/read/322307/wookie-widgets
To view Scott Wilson's profile, click here:
http://community.elgg.org/pg/profile/scottwilson
You cannot reply to this email.