[DUG-TO] Passing arguments to Views
Andre Molnar
andre at becircle.com
Thu Jun 18 15:18:11 EDT 2009
Evan,
Sounds like you're more or less on the right track - since arguments are
just added to the URL.
You could set up your view to take multiple arguments instead of trying
to stuff two arguments (first/last name) into one.
e.g. bookview/%1/%2 where 1 is last and 2 is first
andre
Evan Leibovitch wrote:
> Ashok Modi GMAIL wrote:
>> As Andrew said, Views is definetly the answer. One suggestion I have
>> for you is to install the advanced help module which Views greatly
>> ties into. It will explain a lot about the arguments you can pass in,
>> fields, how to change the output of fields into links (and what it
>> will get linked to), and so forth. If you are using Drupal 6, the
>> above is especially true (and would make your theming life a lot easier).
> Thanks for the quick answer.
>
> Actually, my problem is not within views itself but in how I can call it
> with an appropriate argument.
>
> I have the Link module installed which gives me a URL CCK field type.
> I'm wondering if I can massage that so that the link I put in is
> something like bookview/%lastname+", "+%initial (if the view's URL is
> "bookview")
>
> At that point I think I have a good idea about how Views could be made
> to handle it. It's the passing of the argument, not the receipt by
> Views, that is my stumbling block.
>
> - Evan
> _______________________________________________
> DUG-TO mailing list
> DUG-TO at lists.openject.com
> http://lists.openject.com/listinfo/dug-to
More information about the DUG-TO
mailing list