dinamically define view's arguments in nodereference definition

neuquino - August 14, 2008 - 01:07
Project:Content Construction Kit (CCK)
Version:6.x-2.0-rc4
Component:nodereference.module
Category:feature request
Priority:critical
Assigned:Unassigned
Status:duplicate
Description

Drupal version: 6.3
1. Instructions to configure a fresh drupal installation to reproduce the problem:

1.1 Install Drupal 6.3 with cck and activate modules: content and nodereference
1.2 Create a content type "Brand" with no fields
1.3 Create a content type with "Model" with a nodereference field of type "Brand" (field_model_brand)
1.4 Create a view "brands_view" with the following parameters:
a) Display: Block
b) Fields: Node:Title
c) Filters: Node:Type = Brand
1.5 Create a view "models_of_brand" with the following parameters:
a) Display: Block
b) Arguments: Content:NodeReference:Brand(field_model_brand)
c) Fields: Node:Title
1.6 Create a content type "Car" with the following fields:
a) field_car_brand of type nodereference of type Brand
b) field_car_model_brand of type nodereference, click on "Advanced - Nodes that can be referenced (View)" and select models_of_brand view.

Now, the cuestion is:
In the arguments section I can only supply constant Brand nodeIDs?
I want that when I create a car, the field_car_model_brand select list is populated with all models of that brand. Is any way to get this done with nodereference module?
Thanks

#1

neuquino - August 14, 2008 - 02:50
Title:views» dinamically define view's arguments in nodereference definition

#2

neuquino - August 15, 2008 - 18:18
Priority:normal» critical

please, is critical for my site to find a solution to this, and I don't know what else I can try... Any comment will be welcome

#3

neuquino - August 17, 2008 - 16:29
Category:support request» feature request

#4

neuquino - August 19, 2008 - 16:01

here is some hint on how to make it possible http://groups.drupal.org/node/3471

#5

drewish - January 30, 2009 - 20:17
Status:active» duplicate

this is older but i think that #349301: Node reference, using the advance view option, arguments are too limited has a better idea.

 
 

Drupal is a registered trademark of Dries Buytaert.