CSControl:IndexPostList with QueryOverrides on main page

rated by 0 users
This post has 3 Replies | 3 Followers

Not Ranked
Posts 15
Points 195
benhoffman Cool [H] Posted: Wed, Aug 15 2007 5:37 AM

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


 

Top 25 Contributor
Posts 939
Points 17,385
CS Developers

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
Wyatt - The Geek Cowboy

  • | Post Points: 20
Not Ranked
Posts 15
Points 195

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.

Regards   

Ben Hoffman 

  • | Post Points: 20
Not Ranked
Posts 3
Points 30

Do you have a solution for this issue, i am also experiencing this problem.

  • | Post Points: 5
Page 1 of 1 (4 items) | RSS
Powered by Community Server (Commercial Edition), by Telligent Systems

Copyright© 2008 Telligent Systems Inc. All rights reserved
CommunityServer.com  •  Telligent.com