I'm adding a custom IndexPostData to my frontpage, or at least I would like to. I'd like to provide an attribute to filter the IndexPostList / IndexPostData controls to show only forum posts from a specific forum? Is this possible? I have looked at the available attributes but alas they are not commented as to what they do. QueryOverride, I have read, does something similar for some of the other CSControls.
Also, is it possible to add a pager to such as IndexPostData CSControl? It would be cool to have a pager on the frontpage to allow the user to cycle through the post data from my question above.
Thanks!
All of the Chameleon controls are documented in the CS2007 Chameleon Control Documentation help file.
That said, you can use something like:
<CSControl:IndexPostList runat="server"> <QueryOverrides SectionIDsToSearch="ID_OF_FORUM" PagerID="ForumPostsPager"></CSControl:IndexPostList><CSControl:Pager id="ForumPostsPager" runat="server" />
... and you can customize the ItemTemplate of the IndexPostList using IndexPostData controls.
To be fair... that documentation was not there when the question was asked.
While it is an excellent start - the new Control Documentation is a long way from what is needed to help us discover what all we can do. Many of the properties are not commented and a lot of those that are, are not commented in a way that actually help the reader fully understand the control.
Having the answer to the question spelled out above, I tried to dig through the Control Documentation to see if I would have been able to figure it out with just the help files. No such luck - but I am new to CS - so maybe that is the problem. I personally was looking in WeblogPostList and would never have thought to have looked in the IndexPostList.For those of you that have had your "hands in the code" for a while, is there ANY other resource that can help cut the learning curve on customizing CS? I love my new toy - now I just need to know how to play with it.
-dapps (my brain hurts)
I'm sorry, I wasn't suggesting that you should have found the answer yourself. These forums are here to help people with questions about Community Server.
The control documentation is a first version -- there is a lot to document and we still don't have examples or lengthy remarks for each comment (though every property *should* have some comment associated to it). There will be updates. (prior to CS2007, there was no documentation for controls, so we're getting somewhere...)
Wyatt and I are also working on a book devoted to theming Community Server... it should be available sometime in the fall.
Please ignore! I realized I was trying to override the default IndexPostList that is built on public override OnInit - so please ignore. Thanks.
Ben,
As you might recall for another one of my posts, the functionality of <QueryOverrides> seems somewhat finicky.
<QueryOverrides SectionIDsToSearch="9" runat="server" SortBy="DateDescending" PagerID="AdListPager" GroupsToSearch="8" />
This works - however, if I remove the "GroupsToSearch="8"" it does not - any thoughts? I figured SectionIDsToSearch wouldn't care the Group ID(s) I specified, but does for some reason. This is being run inside of a <CSControl:IndexPostLost>, by the way.
Anyways, just a concern I have. It seems to be working - does the format for multiple SectionIDsToSearch or GroupsToSearch take commas?
i.e. GroupsToSearch="9,10" - if so, this doesn't seem to work for me. :(
Copyright© 2008 Telligent Systems Inc. All rights reserved CommunityServer.com • Telligent.com