Download & Extend

Empty views do no use arguments properly in organic groups

Project:Organic groups
Version:6.x-2.0
Component:og.module
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed (duplicate)

Issue Summary

Views that are included in groups in the form of tabs(provide menu as tab), don't actually get the group name from the argument in the URL unless there's content within the view.

If you use custom breadcrumb settings like

    Titles:

Groups
[ogname-raw]

    Paths:

groups
groups/[ogname-raw]

It will output the token as a string instead of replacing it with the actual group name like:

Groups > [ogname-raw] with an actual path of "site.com/groups/[ogname-raw]"

isntead of

Groups > Monkies with a path of "site.com/groups/monkies"

When the view is populated with content it works properly though. Thanks for reading.

Comments

#1

Project:Custom breadcrumbs» Organic groups
Version:6.x-2.x-dev» 6.x-2.0
Component:custom_breadcrumbs_views» og.module

Thanks for reporting this. I don't think there is anything that custom breadcrumbs can do about it, however.

Custom breadcrumbs just uses whatever text is returned through token replacement. In this case [ogname-raw] is being provided by organic groups. I suspect a node is required to extract the associated group name. So when the view is empty, it can't be replaced.

There might be ways of fixing this but it would have to be done in the organic groups module, not custom breadcrumbs. I am moving this to that issue queue to see if you can get a better answer over there.

#2

Status:active» closed (duplicate)

Breadcrumbs in the token are driven by the current group context. This is a duplicate of several issues exploring Views & broken group context.