I created group widgets for a client and used the widget container guid to determine what widget should be displayed in what group profile.
Containers can be any Elgg type/subtype (they are not restricted to users and groups) so that would probably work for you as well.
Actually, I think the fact that the owner guid is used to determine the location of user profile and dashboard widgets is a bug - the widget system should always use the widget container guid which would make your sort of application even easier to implement.
Hi,
I have tested it and it works. I guess if this is what Alex Shu wants then it will help. Maybe it is a nice idea to make a plugin.
Regards.
Alex Shu Just a small issue, remember to disable and enable the plugin where you put the new view.
Regards.
Thank you all who give me an answers!
PLai - it's really great idea, this is the solution I'll use.
gushbellino - do you mean that I should toggle the plugin OFF and then ON? but what exactly should happen by these actions? If you mean the troubles with simplecache - it's not a problem because the site is in DEV mode and simplecache now disabled. If there's some else - please describe in more detail, so I better understand the mechanism used for this.
info@elgg.org
Security issues should be reported to security@elgg.org!
©2014 the Elgg Foundation
Elgg is a registered trademark of Thematic Networks.
Cover image by RaĆ¼l Utrera is used under Creative Commons license.
Icons by Flaticon and FontAwesome.