Hi Guys,
I posted this to the Themes and UI Changes forum, last night, but did not appear (May have been modorated)
Anyway I use the below pice of code the Main page of my website/blog, but it seems that these methods CSControl:IndexPostList and QueryOverrides cause the comments to be displayed as a post (See screenshot below), and you can see my blog here http://BizTravelGuru.com
My questions, is there another way I can use caching and but not have the Comments displayed as a post/item on the main page. Or is there an option not to display comments.
Maybe you have a better piece of code to do this please help.
<asp:Content ID="Content1" ContentPlaceHolderID="bcr" runat="server"> <div class="CommonContentArea"> <div class="CommonContent"> <CSControl:IndexPostList runat="server"> <QueryOverrides SectionApplicationKeysToSearch="business-travel-news" PageSize="15" /> <ItemTemplate> <div class="CommonSearchResultDetails"> <BR> <CSControl:IndexPostData runat="server" Property="Title" LinkTo="Post" Tag="h1" CssClass="CommonSearchResultName" /> <div class="CommonSearchResult"> <CSControl:ResourceControl runat="server" ResourceName="SearchResults_By" /> <CSControl:IndexPostData Property="UserName" LinkTo="Author" runat="server" /> <CSControl:ResourceControl runat="server" ResourceName="SearchResults_On" /> <CSControl:IndexPostData Property="PostDate" runat="server" /><br> <CSControl:IndexPostData Property="FormattedBody" runat="server" /> </div> </div> </ItemTemplate> </CSControl:IndexPostList> </div> </div></asp:Content>
Regards
Ben Hoffman
NetMoneyFAQ.com -How to implement Text Link Ads on your Community Server blog
The Business Travel Guru
Asia Travel Magazine
One way that you can remove the comments from the page is to actually remove the control code from the page. There is also an option in the control panel that allows you to turn off anonymous comments.
Wyatt Preul
But removing the control code would leave me with a blank page, as it is the same CSControl that displayes both the original post and the comment on my main page (and using caching).
I would prefer to keep all comments, including anonymous as I am trying to build a community based around news, articles and comments, but only want the comment to display when the user click on the URL and opens the post.
Thanks for your help, I may have to go back to the original code, that is found on the blog page.
Do you have a solution for this issue, i am also experiencing this problem.
Copyright© 2008 Telligent Systems Inc. All rights reserved CommunityServer.com • Telligent.com