In my plugin, I want to list all registered page handler's name.
Like blog,pages,activity,group.. etc.
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
- Matt Beckett@Beck24
Matt Beckett - 0 likes
- Siva Shankar@shankarwram
Siva Shankar - 0 likes
- Juho Jaakkola@juho.jaakkola
Juho Jaakkola - 0 likes
- Siva Shankar@shankarwram
Siva Shankar - 0 likes
- Siva Shankar@shankarwram
Siva Shankar - 0 likes
- Juho Jaakkola@juho.jaakkola
Juho Jaakkola - 0 likes
- Siva Shankar@shankarwram
Siva Shankar - 0 likes
You must log in to post replies.Out of curiosity, why do you need to do that?
As of 1.9 there is no good way to do this with public API. I was out voted, sorry...
Here's how to do it by using private API
https://github.com/beck24/pagehandler_hijack/blob/master/views/default/plugins/pagehandler_hijack/settings.php#L11
I have to admit that the ability to add content only to specific pages seems like a valid use case.
Thank you both of you,
Hi Matt Beckett,
I already tried this
in start page of my plugin.
Its throws internal server error.
i can access _elgg_services(), am using elgg 1.8.
i can't able to access _elgg_services(), am using elgg 1.8.
The same for Elgg 1.8: https://github.com/beck24/pagehandler_hijack/blob/1.8/views/default/plugins/pagehandler_hijack/settings.php#L8
Thank you juho and matt.
its working for me in both elgg 1.8 by ($CONFIG->pagehandler) and also in elgg 1.11.1 by (_elgg_services()->router->getPageHandlers()).