Forums

Skip Navigation LinksHome / Developer Network / Forums / Sitefinity Older Versions (3.x): Developing with Sitefinity > Blog List View Timing Out

Blog List View Timing Out

  • Craig Taylor avatar

    Posted on Jan 2, 2012 (permalink)

    To whom it may concern

    Using the default blog set up in 3.7 sp 3 over the past three weeks we've been getting time outs when trying to view http://localhost:1188/Sitefinity/Admin/Modules.aspx?module=Blogs (that is the Blogs list) (Server is a 2008 64 bit, 8GB ram, 2.8GHZ Xeon processor)

    I am pretty sure that it's the counts for Post and Comments that is killing the performance.

    How can I modify the Blog List View not to display the comments and posts count?

    These only seem to occur when called through DynamicPostCount and CommentsCount.

    Regards

    Craig

    Reply

  • Radoslav Georgiev Radoslav Georgiev admin's avatar

    Posted on Jan 3, 2012 (permalink)

    Hello,

    To be able to achieve this you need to map the control template for the blogs list view: ~/Sitefinity/Admin/ControlTemplates/Blogs/BlogsListView.ascx. Then modify it as bellow and restart the website.
    <%@ Control Language="C#" %>
    <%@ Register TagPrefix="sf" Namespace="Telerik.Cms.Web.UI" Assembly="Telerik.Cms.Web.UI" %>
    <%@ Register TagPrefix="sf" Namespace="Telerik.Blogs.WebControls" Assembly="Telerik.Blogs" %>
     
    <sf:BlogEditor id="blogEditor" runat="server"></sf:BlogEditor>
     
    <div class="ToolsAll">
        <asp:HyperLink ID="createNewButton" runat="server" cssClass="CmsButLeft new"><asp:Literal runat="server" Text="<%$Resources:CreateBlog %>"></asp:Literal></asp:HyperLink>
        <asp:PlaceHolder ID="fullWindow" runat="server">
        </asp:PlaceHolder>
        <div class="clear"><!-- --></div>
    </div>
    <div class="workArea">
    <sf:MessageControl runat="server" ID="message">
        <ItemTemplate>
            <asp:Label runat="server" ID="messageText"></asp:Label>
        </ItemTemplate>
    </sf:MessageControl>
    <h2 class="gridTitle"><asp:Literal runat="server" ID="title" Text="<%$Resources:Blogs %>"></asp:Literal></h2>
    <asp:GridView ID="GridView1" AllowPaging="true" AllowSorting="true" PageSize="20" AutoGenerateColumns="false" GridLines="none" CssClass="listItems" runat="server">
        <Columns>
            <asp:ButtonField ButtonType="Link" CommandName="Delete" Text="<%$Resources:Delete %>"><ItemStyle CssClass="gridActions delete" /></asp:ButtonField>        
            <asp:ButtonField ButtonType="Link" CommandName="OpenBlog" DataTextField="Name" SortExpression="Name" HeaderText="<%$Resources:Name %>"><ItemStyle CssClass="gridContentTitle" /></asp:ButtonField>
            <asp:BoundField DataField="Owner" HeaderText="<%$Resources:Owner %>" SortExpression="Owner" />
            <asp:BoundField DataField="DateCreated" HeaderText="<%$Resources:Created %>" DataFormatString="<%$Resources:CreatedDateFormat %>" HtmlEncode="false" SortExpression="DateCreated" />
    <%--        <asp:ButtonField DataTextField="DynamicPostCount" HeaderText="<%$Resources:Posts %>" CommandName="OpenBlog" />
            <asp:ButtonField DataTextField="CommentsCount" HeaderText="<%$Resources:Comments %>" CommandName="ShowComments" />
    --%>        <asp:ButtonField ButtonType="Link" CommandName="ChangeSettings" Text="<%$Resources:ChangeSettings %>" HeaderText="<%$Resources:Settings %>"></asp:ButtonField>
        </Columns>
    </asp:GridView>
    <asp:PlaceHolder ID="emptyWindow" runat="server">
    <div id="empty">
        <h2 class="gridTitle"><asp:Literal runat="server" Text="<%$Resources:NoBlogs %>"></asp:Literal></h2>
        <p><asp:HyperLink ID="createNewEmpty" runat="server" cssClass="mainLink" ToolTip="<%$Resources:CreateFirstBlogTooltip %>"><strong><asp:Literal runat="server" Text="<%$Resources:CreateYourFirstBlog %>"></asp:Literal></strong></asp:HyperLink><br />
        <asp:Literal runat="server" Text="<%$Resources:Or %>"></asp:Literal>, <a href="http://www.sitefinity.com/sf3/faq.html#ab" target="_blank"><asp:Literal runat="server" Text="<%$Resources:CheckBlogsFAQ %>"></asp:Literal></a></p>      
    </div>
    </asp:PlaceHolder>
    </div>


    Kind regards,
    Radoslav Georgiev
    the Telerik team
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items

    Reply

  • Craig Taylor avatar

    Posted on Jan 3, 2012 (permalink)

    This worked. Thank you for your advice and quick reply

    Reply

  • Register for webinar
Skip Navigation LinksHome / Developer Network / Forums / Sitefinity Older Versions (3.x): Developing with Sitefinity > Blog List View Timing Out