I followed your readme.tx instructions:

  1. Install the module (duh)
  2. Go to admin/settings/similarnodes
  3. Set the weight for each taxonomy
  4. Now create a view, add the argument "SimilarNodes: Source Node Id" - You need this to make it work
  5. Add the field SimilarNodes: Weight
  6. give it a shot! go to yourview/{NID} for a list of related nodes

I created a block for this view and put it in to the rightsidebar (Garland theme). But nothing shows up..

Am I missing an additional fields, filters or arguments? I'm also confused as to why I should add a field "similar nodes:weight". Should this be a filter instead/

Please help...

CommentFileSizeAuthor
#3 similarnodes_nid.png36.84 KBgreggles

Comments

deadlyminds’s picture

Sorry for the repost...I didn't get this part as well - "give it a shot! go to yourview/{NID} for a list of related nodes"

Does this mean I can't put the view in a block? I'm kinda lost with this one..

JacobSingh’s picture

Hi,

Similar nodes can only work with an argument passed in (a node id). This means that if you add it as a block which you show on node pages, you will need a little bit of PHP code in the views argument handler. I believe the view I gave that comes with the module does this. Did it work properly as a standalone view like in the readme?

greggles’s picture

StatusFileSize
new36.84 KB

I couldn't get it to work neither in the block nor as a standalone page.

The standalone page view kept saying "You must provide a node id as an argument for this view to do anything" even after I added a node ID to the url (see screenshot)

JacobSingh’s picture

Status: Active » Postponed (maintainer needs more info)

Hi greggles,

Let me see if I can help out... first, make sure you've got the similarnodes table in your database. This is an index of all nodes and their terms and the weight of that term.

If it has no data in it, go to the settings page and rebuild it. If it still has no data in it, file a bug.

Assuming it has data in it, try getting the query out of the view using devel or some views_build_view('queries') and paste it in here so I can see what is going on.

The module works by hacking around views to add aggregate functions like SUM on the similarnodes_weight table.