Is it possible to view Forum posts that another user has participated in; for instance, on THEIR profile page. (View forum posts that the user whose profile you are viewing has participated in).
I currently have a CSForum:ThreadList control, but there does not seem to be a way to have it get data for an arbitrary user id; it always gets data for the currently logged in user. I have tried to explicitly set the UserID property of the QueryOverrides both in the markup and programmatically, but always get the same results.
I have even tried building a List<Thread> object directly and making it the ThreadList's datasource, but this leads to other problems.
I therefore conclude that the functionality that I am trying to implement is not currently possible in CS 2008 OR is a bug. Am I missing something? Any ideas on a workaround?
Firstly, if you want a list of posts the user has participitated in, you'll wnat to use a ForumPostList control, not a ThreadList control.
Community Server Documentation please rate articles you read
Nintendo Wiikly | My Blog
If you don't need all the details that a CSForum:ThreadList provides, then you could try a CSControl:IndexPostList specifying the QueryType to be "ByCurrentUser". The CSControl:IndexPostData isn't quite as complete, but if you just want basic info, then it should do the trick.
I tried the ForumPostList control, but it didn't display anything (I am not in a Forum context).
Could you please provide markup for the IndexPostList control?
Something like this should be a good start:
<CSControl:IndexPostList runat="server"> <QueryOverrides QueryType="ByCurrentUser" ApplicationTypes="Forum" /> <ItemTemplate> <CSControl:IndexPostData runat="server" Property="Title" LinkTo="Post" /> </ItemTemplate> </CSControl:IndexPostList>
That does exactly what I wanted. Thanks.
Copyright© 2008 Telligent Systems Inc. All rights reserved CommunityServer.com • Telligent.com