Multiple values as one argument in a view
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
you could probably use views argument handling code for that. http://drupal.org/node/70145 On 6/11/07, Zohar Stolar <z.stolar@gmail.com> wrote:
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 -- [ Drupal support list | http://lists.drupal.org/ ]
participants (2)
-
Eric McKenna -
Zohar Stolar