[DUG-TO] Passing arguments to Views

Ashok Modi GMAIL btmash at gmail.com
Thu Jun 18 13:34:49 EDT 2009


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).

-Ashok

On Jun 18, 2009, at 10:11 AM, Andrew Berry wrote:

> On 18-Jun-09, at 12:57 PM, Evan Leibovitch wrote:
>
>> I have a cck content type, "authors", and another one called  
>> "reports".
>
> Yes, Views is the answer :)
>
> Typically I've approached this where the author nodes are content  
> profile nodes.
>
> - Create a page view with a path such as users/%1/reports
>
> - Set the view to include a list of report nodes as normal, with an  
> argument setting tied to your user reference field. Depending on if  
> you do a UID or user name, you may need to write a little bit of PHP  
> code to massage the argument into what you want. That's especially  
> likely on Drupal 5. There's a lot of documentation online for this  
> as it was a common use case of argument PHP code in Drupal 5.
>
> - Either put the view in your menu system as a tab (so it shows up  
> on all pages), or just theme in the link into your author node  
> template.
>
> Good luck!
>
> --Andrew
>
> _______________________________________________
> 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