Is there a way to show a view in a hook handler? tried echo elgg_view('some_view_path'); and didn't work.
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.
- Nikolai Shcherbin@rivervanrain
Nikolai Shcherbin - 0 likes
- Higros@Higros
Higros - 0 likes
- Nikolai Shcherbin@rivervanrain
Nikolai Shcherbin - 0 likes
- ihayredinov@ihayredinov
ihayredinov - 0 likes
- Higros@Higros
Higros - 0 likes
- Higros@Higros
Higros - 0 likes
- ihayredinov@ihayredinov
ihayredinov - 0 likes
- Nikolai Shcherbin@rivervanrain
Nikolai Shcherbin - 0 likes
- Higros@Higros
Higros - 0 likes
- Nikolai Shcherbin@rivervanrain
Nikolai Shcherbin - 0 likes
You must log in to post replies.http://learn.elgg.org/en/stable/guides/views.html#altering-views-via-plugins
Not possible to extend views in a hook handler
Could I use Ajax to show a view in the handler, in php?
http://learn.elgg.org/en/stable/guides/ajax.html#fetching-views
What are you trying to do? In general, you shouldn't echo anything anywhere, except for views, otherwise you may end up outputting content after headers have already been sent.
I want to display an ajax form inside a hook handler, concretely when this hook is triggered:
elgg_register_plugin_hook_handler('status', 'user',
It would also work to display a view even without Ajax if possible.
On a side note, does anyone know the function for showing blue system messages?
I know system_message() displays a green message, and register_error() for the red messages. But what about the blue ones?
Ajax views are views registered for ajax. They behave the same way as any other view.
Use this
Learn this also
Thanks for the replies, I would appreciate very much a reply also on the question about blue system messages too.
This is an admin notice