I am using the Activity page as the homepage of my 1.8.3 site and want to add it to the beginning of any bradcrumb trail that's generated. How can I do that?
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.
- Trajan@Trajan

Trajan - 0 likes
- Burgs@burgs

Burgs - 0 likes
- Brett@brett.profitt

Brett - 0 likes
You must log in to post replies.Create a plugin hook for pagesetup with a late priority and pull in the breadcrumb, then inject your extra one to the beginning and return the breadcrumb to the page.
Thanks Trajan... How do I "pull in the breadcrumb and return it"?
I think Trajan is suggesting you hook into pagesetup (which is called the first time a view is used) and then manipulate $CONFIG->breadcrumbs directly.
I don't recommend this approach. All you'd have to do is put a call to elgg_push_breadcrumb() somewhere in an early-loading function or in start.php itself. You theme or site's local customizations plugins would be perfect.