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.
The "Similar By Terms" block is not appearing when it should.
Node 1:
- Content Type = page
- VocabularyA: Term1
- VocabularyB: Term2
Node 2:
- Content Type = video
- VocabularyA: Term1
- VocabularyB: Term2
The block appears when viewing node 2, but not when viewing node 1.
Both vocabularies are "Multiple select".
Comments
Comment #1
jjeff CreditAttribution: jjeff commentedHave you altered the default View at all? Are you filtering by content type? Or limiting by vocabularies?
Have you changed the configuration of the block from the admin/build/block page? Perhaps limiting the pages on which it appears?
Similar By Terms shouldn't take node type into consideration at all on its own.
Comment #2
toomanypets CreditAttribution: toomanypets commentedThanks for getting back to me.
>> Have you altered the default View at all?
No.
>> Are you filtering by content type?
No.
>> Or limiting by vocabularies?
No.
>> Have you changed the configuration of the block from the admin/build/block page? Perhaps limiting the pages on which it appears?
No -- triple checked!
Just to be sure, I uninstalled the module, deleted the view, the reinstalled the module -- same problem.
In an attempt to learn more I created another node from scratch...
Node 3:
- Content Type = page
- VocabularyA: Term1
- VocabularyB: Term2
Now the "Similar By Terms" block appears on Node 2 and Node 3 -- so there's nothing wrong with the view or block or content type or terms or vocabulary. Very strange.
So maybe Node 1 is an anomaly -- some aspect of it is corrupt? So I deleted Node 1, then recreated it from scratch (same title, menu path, content, blocks, terms, settings, etc.). The "Similar By Terms" block is now present -- problem solved.
As far as I can tell the Similar By Terms module is behaving perfectly (I love this module) on all other nodes, so I'm chalking this one up to a "bad node".
Thanks again. Closing.
Comment #3
jjeff CreditAttribution: jjeff commentedI like the "bad node" theory! Glad to know it's working perfectly for you. ;-)
Comment #4
toomanypets CreditAttribution: toomanypets commentedIt's the first "bad node" I've ever seen. Bad, bad node. Wish I could prove it.