I'll find a solution to this problem in the drupal documentation:
The solution is use the "arguments" section to generate an arguments array like:
$arg = array ( 23, "3+10+11" );
$arg[0] (23, in this example) is the nid of the node we are working with. $arg[1] ("3+10+11", in this example) is the list of id's of terms of the taxonomy
It is running fine now, but I don't understand well what is the mission of the "arguments" section in Views. I see that the view filter by argument. What is, then, the difference between arguments and views?.
Thank you, Carlos.
On Dec 19, 2007 5:24 PM, Carlos Costa ccosta@gmail.com wrote:
Hello all!
I have a CCK that defines an "article". One of its fields is "related_terms" (taxonomy). Other is "related_articles". It will be a select that only lists articles with related terms similar to the related terms of the node.
Is it possible to do that?.
I see two problems here:
- how to define a view that depends on something variable
- what does it happen if we modify the data in the related terms fields
Any help will be very appreciated. Thanks in advance, Carlos.