Hello experts,
I am trying to create a new 'group' on elgg. It should have similar functions like the existing 'group', but with small variations.
I read the Elgg document and it recomments to use the ElggGroup entity. I am adding a new group type, for example 'new_group' as a pluggin. However, I noticed that there are certain functions defined for the original group, such as group_gatekeeper under lib/group.php.
My question is: what is the recommended practice to create a new type of 'grouup'? Should I add my new_group.php under the engine/lib/ in addition to a new pluggin under /mod/?
Many thanks for your help!
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.
- Cash@costelloc

Cash - 0 likes
You must log in to post replies.You can inherit from ElggGroup and in your constructor/initializeAttributes set the subtype to something other than 'default'. See this example of inheriting from ElggObject for an example: http://trac.elgg.org/browser/elgg/trunk/mod/blog/classes/ElggBlog.php