In /views/default/resources/groups/profile.php, there is a line of code trying to push a breadcrumb without link using elgg_push_breadcrumb($group->name), but apparently it's not working. group name breadcrumb is not showing on group profile page. I tried elgg_push_breadcrumb($group->name, 'example.com'), then the group name will show up. I tried elgg_push_breadcrumb($group->name, ''), also not working. So How to add a breadcrumb without link address in elgg? 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.
- Nikolai Shcherbin@rivervanrain
Nikolai Shcherbin - 0 likes
- damieneskimo@damieneskimo
damieneskimo - 0 likes
- Nikolai Shcherbin@rivervanrain
Nikolai Shcherbin - 0 likes
- damieneskimo@damieneskimo
damieneskimo - 0 likes
- Nikolai Shcherbin@rivervanrain
Nikolai Shcherbin - 0 likes
- Matt Beckett@Beck24
Matt Beckett - 1 like
You must log in to post replies.elgg_push_breadcrumb($group->name); is correct.
This is ugly but works: elgg_push_breadcrumb($group->name); elgg_push_breadcrumb($group->name); //twice on profile
but the group name breadcrumb is not showing up on the group profile page, even in a fresh installed site. I dumped the breadcrumbs and there is only one element in the array: groups.
No idea. Seems elgg_pop_breadcrumb(); intervenes.
Look at my edited above reply
it works when using elgg_push_breadcrumb($group->name); twice which is a little bit weird as you said. Could be a little bug of elgg. Thanks for your reply.
I have encountered in Elgg 1.9 too
Not a bug, it's default behavior. Previous versions used to show link-less endpoint breadcrumbs but the core team voted in favor of removing them.