Okay Scenario is this:

i have two views, i want the first view to generate a list of keywords that i post in my database(Node Type_1) and the second view to be fed these results as a argument[1] to pull the rank results(Node Type_2) from the system, displaying those that match what was provided. How do i build the argument so that it is term_1 or term_2 or term_3...etc and then how do i go about actually calling the view and getting it to render?

Comments

nevets’s picture

Is there a field in nodes of Type_1 that specify the relation to nodes of Type_2 (or the reverse)? An example would be a node reference field in Type_2 that references nodes of Type_1.

cmcintosh’s picture

Okay so basically what i have now so far is a view that is calling the second view, which then builds a graph using chart API. It works well for the most part. Right now I am limited to graphing one keyword at a time. The reason is I cannot figure out how to send the second view a list of arguments to check against as an OR value, so query in sql would look like:

SELECT * FROM table_1 WHERE field_1 = 'value_1' OR 'value_2'

so far i can get single keywords using an array like:
$arg[0][] = 'value_1'

but not if you do something like this:
$arg[0][] = 'value_1'
$arg[0][] = 'value_2'

Any suggestions with this would be awesome. Possibly also a new man page is in order as this is not discussed in the Views 2 documentation.

Chris McIntosh
(812) 250-4103 | cmcintosh@wembassy.com

nevets’s picture

What is the field type for 'field_1'?