[support] Multiple values as one argument in a view

Zohar Stolar z.stolar at gmail.com
Mon Jun 11 08:22:58 UTC 2007


Is it possible to pass multiple values as one argument in a view?
For example, Say I have a CCK field with 4 options:

0 | red
1 | green
2 | blue
3 | white

I want to pass these values to my view, using a URL like 
http://example.com/color/0

This is very easy. But - How can I use one argument, to show me two colors?
I tried the following with no success: http://example.com/color/1,2  and 
http://example.com/color/1+2

Neither worked.

Any ideas?
Do I have to create two separate views for that (one that uses URL 
arguments and another one using filters)?

Zohar


More information about the support mailing list