📜 ⬆️ ⬇️

Drupal Views Attach

In the process of developing a project on Drupal, the challenge arose to display all nodes referring to this using node reference. There was a wonderful Views Attach module that allows you to attach it to a specific type of View and pass the id of the current node to it. The module went perfectly.

Not so long ago, it took almost the same, but a little more difficult: to attach to a certain type View, displaying the nodes of a given type containing a certain taxonomy term. Having run through the existing modules, the necessary one was not found, but I remembered Views Attach. And since the View parameters were well-made fully customizable, I decided to integrate this module with Token , which I implemented today.

As a result, using this solution, you can, for example:
1. Display when viewing nodes 10 nodes with similar taxonomy terms.
2. Display 10 nodes specified by the field cck type.
3. Display flagged nodes referring to this one.
four. …
')
You can pick up the patch in the project tracker.

Source: https://habr.com/ru/post/54351/


All Articles