Hello,

In views I would like to use the "PHP validate code" for arguments in order to pass an argument value to the views filter-function.

My problem is: I have a CCK fiels "productfunctionalities" which can have multiple values (integer). Some products have for example the value(s) {1} some have {9} and some have {1, 2, 5} etc. Now with views I would like to have the possibility not only to list products wich do positively match one or more productfunctionalities e.g "1" or "1,9" but also use a dynamic filtering that can exclude products by their productfunctionalities value. e.g. show all products with productfunctionalities "1" but exclude from that result the products with productfunctionalities "5". Hence 5 would be the value of some kind of "negative argument" or dynamic filter.

So I hope maybe it is possible to pass an argument to the views filter-function in order to achieve that. For example, would it be possible having 2 arguments (e.g. domain/path/1/5) that the first is normally used as argument for that view where the second is used (passed) as a filter. Can the 5 in this case be somehow passed to the filter, maybe by using something like "$view->filter" in the PHP validator for the second argument? How exactly?

I have seen realted open questions in the forum seeking for "negative arguments" (expanding the "+" and "," possibilities of the "multiple terms per argument" option) or "dynamic views filter", so I hope this question is also interesting for others.

Thanks for any hint!

Killeroop

(Views 6.x-2.1)