1

I have a content type (e.g. Target) which has a title and body. I will have about a 1000 nodes of this content type. I want to be able to create a view that renders not not only the title and body of this type of node, but also associated/related nodes.

I don't want to have to manually associate nodes (based on taxonomy or by adding an entity reference). Instead, I want the view to automatically search for the Title of a given node in the Body field of all other nodes of this type and associate those nodes that contain the given node's Title.

I'm new to Drupal, but believe I've gotten my head around the basics and have several Views configured and working. But I can't seem to find any guidance on achieving the above and not sure how to do that in Drupal/Views, although I know this is achievable in straight SQL.

Any ideas, advice?

0

1 Answer 1

0

Remeber that views is some kind a query builder, even better it gives you tools to alter its content, query and so on. See hook_views_query_alter

2
  • I am not at all familiar with using Drupal hook-alters. Is there no way to do this via the Views UI then? Jan 12, 2015 at 22:46
  • Without a field relationing them I think no, at least one I can think of Jan 12, 2015 at 23:25

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.