Hi,
I'm adding a plugin for something akin to groups - but with different layouts etc. Lets call it an 'issue'. it will have members (invited only), forum, polls etc - but needs to be laid out and administered differently from groups, and will have custom permissioning.
Looking at the dev docs, it appears that customizing based on Elgggroups is the way to go. So I've started playing with a test plugin - based on what I can see in the standard groups files.
When creating such an 'issue' record, is it right to call something like $issue = new ElggGroup(); but then set it's sub-type to something like 'issues'? The reason I'm not sure is that even with this set, would the standard groups plugin still be able to view and process these issues (which i would not want) - as it's still a group record, and the group code seems to handle all group entities with ALL sub-types.
Thanks
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.
- DhrupDeScoop@Dhrup2000

DhrupDeScoop - 0 likes
- stevewc@stevewc

stevewc - 0 likes
- DhrupDeScoop@Dhrup2000

DhrupDeScoop - 0 likes
- stevewc@stevewc

stevewc - 0 likes
- DhrupDeScoop@Dhrup2000

DhrupDeScoop - 0 likes
- stevewc@stevewc

stevewc - 0 likes
You must log in to post replies.correct.. also read http://community.elgg.org/pg/plugins/c4lpt/read/385033/rename-groups-as-communities
Thanks - but I don't need to rename groups as I want to keep grounds - just have an additional group-style container for 'issues'.
didya read this on that other post ??
i said this before @ another post re: groups --> " axing for trouble - look at all those triggers, events, hooks related to "groups" in the start.php" ...... ps: i have adapted groups in this manner for another project. the code to watch out for is a mucho big headache.
DhrupDeScoop 229 days ago
Thanks - sorry - didn't catch that post outside of the renaming angle.
Looks like a lot of work then either way - if I use the existing groups, then I'm going to have to augment the triggers, events and hooks to accommodate the new functionality. Alternatively, effectly copy groups and add the new code there.
guid luck ;-) the work involved is somewhat more than what you've listed.. if you're ready for headaches ! tho i still feel that "add the new code there..." is lesser than the real work involved.
True - but I'm hoping that as I don't need a lot of the functionality of groups - but more new, specific function - this way is going to be the lesser of two evils.
Time to earn my wages I suppose :)