0

I am creating a Drupal site that is used as a task manager; each task node has the ability to reference another task node as a parent.
In the task list view, I would like to nest the same or similar view within each row, displaying that tasks children.

I've done something similar before by theming; however, I'm wondering if is there a standard, or emerging way of accomplishing this within the Views interface with a third-party module.

  • Ideally I envision a field, similar to the Global: View Area, which could accept contextual filters as tokens, not that such a thing necessarily exists, but it would be cool I think :) – DanH Aug 14 '11 at 13:07
  • i had installed node reference field. module but cant see this as widget in my cck manage field menu ..please help to find it out – user3531 Oct 20 '11 at 10:17
3

You can solve it with Viewfield.

View arguments are supplied through tokens.

So, what you should do:

  1. Add new type of your view (new Block, for example) and add contextual filter by node reference field.
    You can modify display format etc.
  2. Create for your tasks new field "View Reference" and set your new display type of view. Check «Always use default value».
  3. Set [node:nid] in Arguments input.

Tested on D7.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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