View reference field drupal hosting

Posted by tejaspmehta on August 18, 2011 at 6:25am

I am using CCK + Views to create one application in D7. I have following cck.

Category
Sub Category (one field has node reference to Category)
Product (one field has node reference to Category and one field has node reference to Sub Category)

Sub Category has Node Reference for Category and it works fine. Now in Product content type what i need is when i select Category (which is node reference field) then automatically related Sub Category should be listed. For this i have workout and find that Reference type is helpful in views. In Product when i try to create field with node reference for sub category field at that time it gives me list of views which are created with Reference type. So i need help in view in which i have one field of category and based on selection of that value of my view related field should be changed.

View reference field drupal hosting the node reference field

Till now i have made one view in which i have listed all values of Sub category, but in cck of product it is listing all values instead of displaying related items based on change in Category value.

Can anyone let me know how to do this with views. I have tried relationship, filters, etc. I am just inches away but didn't find proper solution for this.

Thank you
Tejas Mehta

Posted by tejaspmehta on August 26, 2011 at 5:22am

anyone who has any idea on this. If you do not get it then i will explain it again.

Thank you
Tejas Mehta

Posted by manuel_mra on July 30, 2012 at 12:21pm

Hi:
I'd like to create a new node reference to a node with view but I can't.
What do I have is the following:
- In a content type I have created a node reference field.
- I have have selected the "View used to select the nodes: " and choosed the view.
- I have no idea to set the arguments. and then related to the view.
-In the view I have an argument that get the Nid (from the Node ID from URL).
- I have read an article and it says that I have to use the Filters view. I have used and selected the node reference field and the list is empty and I have no results.
What do I need to do to make it works.
Thank you for your help.

Related articles

Reference link drupal hostingPosted by tejaspmehta on August 18, 2011 at 6:25am I am using CCK + Views to create one application in D7. I have following cck. Category Sub Category (one field has node reference to Category)...
Tim millwood drupal hostingIts learning curve is notorious but Tim Millwood argues that Drupal is not that fearsome, and demonstrates how you can use it to build a job board Knowledge needed. Basic web development and...
Role reference drupal hostingThis project provides D7 versions of the 'node_reference' and 'user_reference' field types, that were part of the CCK package in D6, at functional parity with the D6 counterparts. See...
Field instance drupal hostingWhen we go to the path /admin/structure/types/manage/article/fields and use Add new field option or Add existing field option, does that create a field or create field instance or attach field...
Vocabulary reference drupal hostingHow to manage taxonomy in Drupal In Drupal taxonomy is used to organize and classify the content on your site. For example, when you create content items (nodes) you can add tags that are...