I have set up an elgg site and have already made numerous modifications including posting items to the river that were not posting in the past.
I am trying to make it post when a user joins a group to the river. Right now, the functionality already posts when a member creates a group. In the standart groups mod, this is the other way around, please continue reading.
The problem is with the view I am trying to call. I have also changed some things around. Here are the details:
I assumed the create view (called 'river/group/create') is pre-established somewhere. When I call elgg_view_exists, I had it print out the file that it is pointing to for the join and it is not pointing to the mod directory, instead it points to a standard non-mod view: /var/www/html/views/default/river/group/join.php. I tried to force the view (perhaps I did it wrong) in mod/groups/start.php with set_view_location('river/group/join', $CONFIG->pluginspath . 'groups/views/default/river/group/'). When I looked at the path after that, I got /var/www/html/mod/groups/views/default/river/group/default/river/group/join.php (which repeats default/river/group twice).
What am I doing wrong? why isn't the view automatic as with my add_to_river creations in the past?
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.