How to create breadcrumbs based on OG
Suppose group type is : group
group post type is : post
1, for group
Navigate to rules management page. You will see "breadcrumb for node view" rule, clone it.
Add an condtition "node type is ", choose "group". Choose the term field that you want to generate breadcumb base on.Here you could choose [node:field_your_term_field].Get all parent terms for this term.
Add a loop.
then add action "breadcrumb2_append_breadcrumb_trail" in the loop.
2, for post:
Navigate to rules management page. You will see "breadcrumb for node view" rule, clone it.
Add an condtition "node type is ", choose "post".
Choose the term field that you want to generate breadcumb base on, Here you could choose [node:og_group_ref:field_your_term_field].Get all parent terms for this term.
Add a loop.
then add action "breadcrumb2_append_breadcrumb_trail" in the loop.
you could add action "breadcrumb2_append_breadcrumb_trail" as many as you need in your rules edit page.You could do it with the same way for other content types, or views pages.
Help improve this page
You can:
- Log in, click Edit, and edit this page
- Log in, click Discuss, update the Page status value, and suggest an improvement
- Log in and create a Documentation issue with your suggestion