Closed (won't fix)
Project:
Similar By Terms
Version:
6.x-2.0-rc1
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
17 Dec 2010 at 02:27 UTC
Updated:
1 Aug 2016 at 09:45 UTC
Jump to comment: Most recent
Comments
Comment #1
jjeff commentedUnfortunately, there's not an easy way to do this. Here's a typical SQL query for the default SBT2 view:
Note the part that says
term_node.tid IN (139, 84, 140, 48, 74, 8)This basically says, "find other nodes with the same terms as those associated with this node." And the combination of the
COUNT(node.nid)and theGROUP BY nidprovides the sorting functionality. Unfortunately, there's not a way that I'm aware of to include nodes which don't match this criteria while still allowing us to sort/view by similarity.If anyone knows of a way to make this work, I'm open to it. It's just beyond my understanding at this point.
Comment #2
Big Z commentedI was looking for this exact functionality. After thinking for a while I decided to spin the problem on its head and attack it from the taxonomy side.
Using the Taxonomy Defaults module you can give every node you create a default (hidden) term. This has no affect on the ordering produced by the SBT sort, but does include every node!
The only problem is nodes that already exist need to be updated to include the default term. Maybe a bulk update utility exists out there or a simple update query could be run on the term_node table.
Hope this helps.
Professional Drupal Development
www.vitalatus.co.uk
Comment #3
takim commented