Hello

I would like to set a related content block using terms displayed in a view : I have a "current event" page, which is a view displaying the current event based on its date field values. This event can be related to other content using taxonomy. So I would like to display a block with the related contents next to the "current event" view, showing the nodes sharing the same term used by the node in the view...
I hope it makes sense :)

Can someone give a hint with that ?
I know how to build a content related block with Views, but only related to a node content, not to a View content..
Hope someone can help, i'm stuck with that for a while..

Best
-P-

Comments

dawehner’s picture

Status: Active » Fixed

Have a look at the similarterms module for that: http://drupal.org/project/similarterms

pacome’s picture

Status: Fixed » Active

Thank you for the advice, but I already had a look at Similarterms, and it is not useful in this case :
-it works only on node pages and not on a view page
-we can't define what is displayed (only title, not even a possibility to display teasers..)

I also gave a try to most of (all?) the "related content" like-modules, and they all works on a node page but not on a view page..

Maybe a solution would be to use a right PHP command in the related-posts view argument ?

Regards
-P-

damiankloip’s picture

If similarterms works on nodes, can't you create a view mode for the node to display the fields/formatting you want. Then use views to display those?

robhoward79’s picture

I have a similar problem. I need to somehow display content with similar tags to the items displayed on a view page. All the solutions I've found only seem to help with comparisons to a single node...

pacome’s picture

Hello damiankloip,

thanks, but I think it's not the solution because I'm not looking for a specific formatting, but to display the "current" node, based on the date field datas. And the way I know to filter nodes based on the date value is with Views...

But maybe there is another way to display the current node ?

Regards
-p-

nmc’s picture

I wrote a guide on how to create a view of related/similar nodes on my blog. Hopefully it's a good starting point and you can modify it to your needs. See http://nmc-codes.blogspot.com/2012/07/list-relatedsimilar-nodes-using-vi...

pacome’s picture

Hello nmc,

thank you for your guide, it is well done !
But I already now how to create a list a related post for a node page..

What I don't manage to create is a list of related post of a view page.
Do you have any idea for that ?

@robhoward79 : could you find any solution for that ?

Regards
-p-

nmc’s picture

@pacome, you may be able to do this if your taxonomy ID or term name is in the URL of your Page view. Your Block view can use the contextual filter and provide a default value of type Raw value from URL. I've not tested this as yet but theoretically, I think this should work.

MustangGB’s picture

Issue summary: View changes
Status: Active » Closed (outdated)