Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I fixed it
Comment | File | Size | Author |
---|---|---|---|
show_menu_in_content_type.patch | 536 bytes | benys | |
Comments
Comment #1
rv0 CreditAttribution: rv0 commentedI dont really understand what the original problem was.
Could you please explain it more?
Comment #2
TripleEmcoder CreditAttribution: TripleEmcoder commentedAn example setup involves a group type X and group content type Y. There is an y created in x and OG Menu Multiple in a sidebar (with no filtering). The menu shows correctly when viewing x, but disappears when going into y.
We believe that there is a bug in og_menu_block_view.
For group type X, this is called, which uses $group->gid (!= group nid):
For group content type Y, this is called, which uses $group->etid (== group nid):
And this always expect $gids to be, well, gids, not entity (node) ids:
Comment #3
rv0 CreditAttribution: rv0 commentedAh yes I see
This multiblock hadn't been tested yet
(hence the:
in code)
Nice catch, will commit after testing
W.
Comment #4
rv0 CreditAttribution: rv0 commentedCommitted the fix, thanks.
tbh, I don't think the multiblock feature is that useful, it needs some rethinking at least.