| 1 |
This module allows views to query the nodes referenced by a certain node reference field.
|
| 2 |
You can use it to filter results from a node reference, and show referenced nodes with pager.
|
| 3 |
|
| 4 |
|
| 5 |
Dependencies:
|
| 6 |
* Nodereference module in the CCK package(http://drupal.org/project/cck).
|
| 7 |
* Views module (http://drupal.org/project/views).
|
| 8 |
|
| 9 |
Common usage example:
|
| 10 |
1. Enable the module.
|
| 11 |
2. Create a content type called Photo.
|
| 12 |
3. Create a conent type called Album with a node reference field named Photo reference, which references to Photos content type.
|
| 13 |
4. Create a new view, set the page URL to 'views_on_node_reference'.
|
| 14 |
5. Add Argument 'Node Reference: Views on node reference'.
|
| 15 |
6. Select the 'photo_reference' field .
|
| 16 |
7. Set filters such as 'node published'.
|
| 17 |
8. Set sort critireia such as 'sort descending'.
|
| 18 |
9. Save the view
|
| 19 |
10. Enter the view URL (i.e example.com/views_on_node_reference/nid - Where nid represents a the node is of an Album content.
|
| 20 |
|
| 21 |
The expected result is displaying, filtering and sorting of the referenced nodes.
|
| 22 |
|
| 23 |
|