Hello,
I want to add a suggested posts box with slider, like Facebook, in the main activity page. Do I have to unregister the default page handler or can I insert it somewhere in the code?
Thank you very much
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.
- Juho Jaakkola@juho.jaakkola
Juho Jaakkola - 0 likes
- core/river/filter
- core/river/sidebar
- Juho Jaakkola@juho.jaakkola
Juho Jaakkola - 0 likes
You must log in to post replies.Instead of replacing the whole page, you can extend one of the existing views used by that page by calling this in your plugin (usually in the init function):
Print the contents of the custom box in the file:
/mod/your_plugin/views/default/path/to/your/file.php
And it should become visible in the activity page.
You can extend at least these two views on the activity page:
More details about the function can be found here: http://reference.elgg.org/views_8php.html#a0e5a8f8b013ca895d006af29897c83fa
And here: http://learn.elgg.org/en/latest/guides/views.html#extending-views