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've installed the last stable version of this module, but when I enter in one of my page node the block of similar terms display me nly one result.
I've noticed that it display only the first result of the query even if I have more than one page node that have the same taxonomy term.
somebody can help me?
thanks!
Comments
Comment #1
dotsam CreditAttribution: dotsam commentedI have the same issue
Comment #2
thedavidmeister CreditAttribution: thedavidmeister commentedi'm having the same issue. It started as soon as i upgraded to views 3
Comment #3
thedavidmeister CreditAttribution: thedavidmeister commentedfurther information: disabling the similar by terms sort allowed me to control the number of items displayed.
removing the field, and the argument both did nothing.
Comment #4
thedavidmeister CreditAttribution: thedavidmeister commentednope, i can't figure this out.
The query generated using a fixed nid for testing is:
SELECT node.title AS node_title,
node.nid AS nid,
COUNT(node.nid) AS node_count
FROM node node
LEFT JOIN term_node term_node ON node.vid = term_node.vid
WHERE (node.moderate = 0) AND (node.status = 1) AND (term_node.tid IN (660, 3822, 24369, 25020, 27862, 27866, 12223, 27863, 8921, 27864, 758, 12219, 27865, 14586)) AND (node.nid != 161777)
ORDER BY node_count DESC
i tried selecting "use grouping" and "distinct" but these didn't help at all.
Comment #5
BlueBlossom CreditAttribution: BlueBlossom commentedsubscribing. I am having the same issue ever since I upgraded to Views 3. Plus the results are always the same node - whether it is similar or not.
Comment #6
thedavidmeister CreditAttribution: thedavidmeister commentedhrm. This issue totally broke the module, and i'm not in a position to downgrade back to views 2.
doesn't look like we're going to get any help from the module maintainers either since this post is about 6 weeks old now.. how frustrating.
Comment #7
thedavidmeister CreditAttribution: thedavidmeister commentedturning the similar by terms sort off at least fixes the number of items issue.
The module can still filter results that share at least one taxonomy term with the current item/argument, but you have to come up with a compromise sort rule.
I ended up sorting by post date. Luckily i had 5 different taxonomies on this particular content type, two of which were set up specifically for relating articles by topic, so the results returned aren't unusable, but they're not really what this module set out to achieve.
Comment #8
tomsm CreditAttribution: tomsm commentedSimilar by terms 1 is now an unsupported release so I upgraded to version 2.
I have the same issues because I also use Views 3.
Comment #9
tomsm CreditAttribution: tomsm commentedSetting this to major since SBT1 has become an unsupported release.
Comment #10
kenwen CreditAttribution: kenwen commentedsame issue here, subscribing
Comment #11
rmiddle CreditAttribution: rmiddle commented#9 I moved SBT1 back in to supported status.
Thanks
Robert
Comment #12
Hardrocker CreditAttribution: Hardrocker commentedI agree changing the sort criteria from similar by terms seems to work. Not sure what other issues it will trigger just have to wait and see I guess. What is did for sort criteria was change the values to randomize.
Comment #13
smithmilner CreditAttribution: smithmilner commentedThis is not a proper fix.
Comment #14
udvranto CreditAttribution: udvranto commentedSame issue here...
Comment #15
udvranto CreditAttribution: udvranto commentedTurning off the sort criteria generates a huge list now. :(
smithmilner, in which file did you update the code?
Comment #16
udvranto CreditAttribution: udvranto commentedI added the code in sites/all/modules/similarterms/views/similarterms.views.inc . The same problem persists! :(
Comment #17
udvranto CreditAttribution: udvranto commentedAdding the following in sites/all/modules/similarterms/views/similarterms.views.inc worked like a charm! Thanks smithmilner! :D
Comment #18
smithmilner CreditAttribution: smithmilner commented#13 is a hook, hook_views_pre_execute() to be exact. You can put that into it's own module, just make sure to rename the beginning of the hook accordingly. Also, put the name of your view into the array $add_group_views.
Comment #19
vishnu.kumar7 CreditAttribution: vishnu.kumar7 commentedHi Smith... Thanks for the fix but it worked for me partially....It's listing similar terms for one content type (blog)...
http://thinkingparticle.com/blog/kanha-national-park-india-map-pictures
but not listing similar terms for article type of content..
http://thinkingparticle.com/articles/bandhavgarh-national-park-best-chan...
However the block is configured for both pages.... /blog/* and /articles/*...
With previous version of similar by terms.... Similar content block was appearing on both kind of content type... any clue...
Regards
Vishnu Kumar
Comment #20
takim CreditAttribution: takim commented