How to mimic "related discussions" like on drupal.org?
I haven't seen any description of how the "related discussions" block works on d.o.... Does anyone know of a writeup or similar tutorial?
I'd like to offer my users a related discussion block but can't seem to limit the recommended content to only forum posts...
Thanks,
Chris

Peter Bull
Hello Chris, If you are
Hello Chris,
If you are using Acquia Search, this functionality is built in. Just navigate to the "Administer > Site configuration > Acquia Search" page (/admin/settings/apachesolr/settings) and click the "Add a new content recommendation block" link to configure the block settings.
If you don't have Acquia Search, you can still get similar functionality using one of the modules that will build relationships between related content based on taxonomy. Take a look at this page on drupal.org, a "Comparison of Similiar / Relevant by term modules": http://drupal.org/node/323329
---
Regards,
Peter Bull
Acquia Client Advisory Team
I'm using Acquia Search
I'm using Acquia Search (just bought my membership) but I don't see how to limit the content type of the related nodes. So I'll get blog posts, CCK nodes, etc - anything that seems "related" when all I want are forum posts...
Chris
Peter Bull
Hello Chris, If you visit
Hello Chris,
If you visit the "Administer > Site configuration > Acquia Search" page (/admin/settings/apachesolr/settings) and click the "Add a new content recommendation block" link, you have some options for the new recommendation block. The Forum vocabulary should be one of those options if you check that vocabulary:
---
Regards,
Peter Bull
Acquia Client Advisory Team
Thank you Peter for
Thank you Peter for continuing to take time to help me with this.
What you're suggesting will only find forum posts that are related to another forum post? At least that's what it seems to be doing on my site. Maybe I have a fundamental misunderstanding of what content recommendation can do.
I want to be able to create a block that only lists forum posts that are related to my CCK nodes. I'm still hoping there is something really obvious that I've missed though...
...
As an example - if you go to a project page on d.o. vote up down for instance... http://drupal.org/project/vote_up_down ... there is a "related discussion" section and a "related projects" section on the right. Presumably since d.o. is using solr they're doing something like what I want to do (relate a project node to a forum node).
Chris
Jacob Singh
Hi Chris, The way the
Hi Chris,
The way the related content block works is that it finds related content based on the criteria you check off on the form in the screenshot. For instance, if you check off "title" and you have a new story entitled "Calvin and Hobbes go to the movies", it will show related forum topics (or any other node type by default) which have the words "Calvin" or "Hobbes" or "movies" in the title. If more than one of those words show up, it will likely come higher.
I think Peter's suggestion was to have only one box checked "Taxonomy term names only from the Forums category". This means that it will only find related nodes which have the same terms applied to them as the node being viewed. Since all the terms have to be from the Forums category, and I assume that only forum topics have terms applied from the forums category, this would only show on forum topics.
Unfortunately, this isn't what you want, and what you're looking for (find related nodes which are of type X) is not a feature that Acquia Search provides right now. Of course, the APIs are available to code up something like this if you have a developer on staff or would like to hire one of our partners to do it.
I hope that helps, and sorry it isn't the answer you were looking for.
All the best,
Jacob
Peter Wolanin
Drupal.org is using the
Drupal.org is using the pivots module or one of it successors to provide the "related discussions" block. I believe they are planing to update this to use Solr, but I think it currently uses some custom SQL tables extracted from site content.
see:
http://drupal.org/project/pivots
http://drupal.org/project/recommender
http://drupal.org/project/apachesolr_autotrack
Post new comment