It is impossible for modules that want to rely on using hook_entity_view() or hook_taxonomy_term_view() to consistently work across all entities since forum terms will never execute this hook because forum_page() executes no hooks at all. Also missing would be a hook_taxonomy_term_view_alter() and hook_entity_view_alter().
Comment | File | Size | Author |
---|---|---|---|
#5 | 1122808-forum-metatag-fix-4-d7.patch | 4.41 KB | bago |
Comments
Comment #1
mparker17Subscribe
Comment #2
sunStandardizing on "entity" tag, which will be renamed to "Entity system".
Comment #3
DamienMcKennaThis is a sibling issue to #1067120: Missing hook_taxonomy_term_view() or hook_entity_view() when viewing a term, once that issue is committed I'll work on this one.
Comment #4
andypostAlso take care with forum's preprocess functions, related #148145: "Forums" title is not localized
Comment #5
bago CreditAttribution: bago commentedIn order to allow "metatag" module to alter metatag for the forum taxonomy pages I had to
1) backport the D8 patch from #148145: "Forums" title is not localized: initially I tried the D7 patch from comment #55 but didn't work, so I backported the latest D8 patch (that also returns a render array instead of calling theme).
2) add a taxonomy_term_view (so that hooks are called, even if the results are "ignored") before returning the render array:
I don't know if the scope of this issue should be first limited to D8 and simply try to add that taxonomy_term_view call in the D8 branch that already include #148145: "Forums" title is not localized: I see that "needs d7 backport" has been removed from #148145: "Forums" title is not localized but it is still here in this one.
Comment #6
matt2000 CreditAttribution: matt2000 commentedComment #7
matt2000 CreditAttribution: matt2000 commentedWhoops. Thats a d7 patch. We still need a d8 patch.
Comment #8
mgiffordComment #14
borwickja CreditAttribution: borwickja commentedPardon the n00b question. Does this mean as things currently stand the bug referenced above would prevent porting of the Metatag module to stable version of Drupal core 8.5? Reason I want to know is I'm trying to assess whether to install Metatag module on an 8.45 site. Is there an upgrade path?
Comment #15
DamienMcKenna@borwickja: No, Metatag works on Drupal 8.4 and 8.5, this is just an outstanding bug in core that makes certain paths not work as expected. There are issues related to the upgrade path in the Metatag issue queue, search for "migrate".
Comment #23
quietone CreditAttribution: quietone at PreviousNext commentedForum is approved for removal. See #1898812: [policy] Deprecate forum module for removal in Drupal 11
This is now Postponed. The status is set according to two policies. The Remove a core extension and move it to a contributed project and the Extensions approved for removal policies.
It will be moved to the contributed extension once the Drupal 11 branch is open.