Hi. I am trying to move the enabled group file widget to the right sidebar on the group profile page. I can see that in groups/profile/layout.php file
// views/default/groups/profile/layout.php
....
echo elgg_view('groups/profile/widgets', $vars);
so I look into the groups/profile/widgets.php file
// enable tools to extend this area
echo elgg_view("groups/tool_latest", $vars);but I couldn't find this groups/tool_latest view. So what is this tool_latest view and how can I achieve to move only the group file widget (not others) to the right sidebar? 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.
- Team Webgalli@webgalli

Team Webgalli - 0 likes
- First you have to create a plugin.
- In that plugin, unregister the view extension made by files plugin (mod/files/start.php - line number 29) by adding the following lines to your plugin
- Then extend any of the views located inside mod/groups/views/default/groups/sidebar/ folder with the view 'file/group_module'. OR you can override the profile.php file inside mod\groups\views\default\resources\groups with a new one integrating the new view directly to sidebar.
- http://learn.elgg.org/en/stable/guides/views.html#altering-views-via-plugins
- http://learn.elgg.org/en/stable/admin/plugins.html
- damieneskimo@damieneskimo

damieneskimo - 0 likes
You must log in to post replies.Physical presence of the vie file is not mandatory. Even if the file for the view doesn't exist, you can still extend it using the api - elgg_extend_view()
If you want to remove the group file widget then
elgg_unextend_view('groups/tool_latest', 'file/group_module');
These links may help you
Thank you very much for your reply, Team webgalli.