[support] Views: Index of Forum topics in D6.

Steve Hays hays at ohio.edu
Mon Jul 7 20:16:34 UTC 2008


... drupal/forum  produces a very nice list of all the forums on a  
site.  So, this list might include

<container> Life at College <with auto URL as>  (forum/11)
<forum> Life in the Dorms (forum/12)
<forum> Coursework  (forum/13)
<forum> Libraries  (forum/14)
etc.

I want to use Views in D6 to produce an index of topics submitted to  
each forum such that if a visitor to the index page (listing all forum  
containers and forums) clicks on the forum "Life in the Dorms," the  
target page reveals a list of all forum topics in that particular forum.

I have made 2 attempts in Views to produce this result:

a) If I include the arg: "Taxonomy Term ID = $tid" (and check the box  
to reduce duplicates),
	I get a list that looks right initially, but it quickly develops  
duplicates as comments are submitted.
	So, for example, an original forum topic "Are dorms loud at night"  
quickly multiplies into 20 duplicates in the list as people comment on  
the original  (presumably because all of them include the same  
taxonomy reference).

b)  If I omit the above arg, the results fail to filter by topic.  So,  
indices for all forums are identical--with content all mixed up  
(library topics included in the dorms forum, etc.)


I don't really want to use a Taxonomy arg at all, of course.  That was  
just a work-around attempt (vainly hoping I could filter out  
duplicates).  What I would really like to do is filter the forum  
topics by forum number (assuming there is such a thing).
There must be some field that identifies the Forum to which a forum  
topic belongs ($fid  ?)

Can anyone be so kind as to tell me how to invoke this field/variable  
-- in Views if possible, or in php if need be?

Thanks in advance.

Steve Hays
Ohio University
Dep't of Classics and World Religions
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.drupal.org/pipermail/support/attachments/20080707/73c9ea20/attachment.htm 


More information about the support mailing list