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.
- Paweł Sroka@srokap
Paweł Sroka - 0 likes
- inca@inca
inca - 0 likes
- rjcalifornia@rjcalifornia
rjcalifornia - 0 likes
- inca@inca
inca - 0 likes
- Paweł Sroka@srokap
Paweł Sroka - 0 likes
- inca@inca
inca - 0 likes
- Paweł Sroka@srokap
Paweł Sroka - 0 likes
- inca@inca
inca - 0 likes
You must log in to post replies.Why clone when you can extend it? See http://learn.elgg.org/en/latest/tutorials/index.html
Thank you Pawel. You are right. Extension is the proper way. The reason I tried the "cloning" is that there are already examples for clones (like the "news" plugin which is a clone of blog), whereas I could not find an example for an extended plugin.
@inca
It is not that easy:
http://docs.elgg.org/wiki/Copy_a_plugin
https://groups.google.com/forum/#!topic/elgg-development/2WgegthsliM
I tried the same thing last year, I wasn't successful.
Thank you rjcalifornia.
I had seen the second link but the first link saying that it is difficult with groups plugin because it does not set the subtype is interesting....
Has anybody ever succeeded in extending/cloning groups plugin?
Groups plugin uses core ElggGroup class which have separate type. Cloning this part as well would be a painful experience IMO.
What parts of the plugin are you actually interested in? I assume you want to run it in parallel with unchanged groups plugin as well? That's the only situation where cloning makes sense instead of extending.
Pawel fo the reply. I plan to have a second "groups" type called "Schools" in addition to "Groups".
Why would cloning make sense (instead of extending) in this case? Is it because Groups does not set subtype?
I assumed you wanted to use groups as base for something not really group-like.
In your case I'd think about using specific subtype for schools and filtering them out (if you want to) from default group listings + create some listings that show schools only. I'd try to use most of the plugin for both subtypes and groups, but it might be not entirely smooth in all cases.
Edit: Meant subtype for schools of course
Thank you Pawel!