More in this section

Forums / Developing with Sitefinity / Problem with view mapping for New Blog view

Problem with view mapping for New Blog view

3 posts, 0 answered
  1. Dinesh
    Dinesh avatar
    46 posts
    Registered:
    03 Aug 2009
    10 Aug 2009
    Link to this post
    Hi,

    I have created a new blog. But I need to implement the paging both at the Top and Bottom of the blog.
    I came across the external templates which we can use to customize modules.
    But, to create a new blog view, what are the templates should I use both at the admin and client side?

    Also I checked the template 'ContentViewItemList.ascx' at the client side and I saw the Paging code implemented in it.

    <telerik:Pager ID="pager1" runat="server"
        <LayoutTemplate> 
            <asp:Repeater ID="PageRepeaterLinkButton" runat="server"
                <HeaderTemplate> 
                    <ol class="sf_pager"
                        <li> 
                            <asp:LinkButton ID="PreviousPage" runat="server" Text="<%$Resources:PreviousPage %>"></asp:LinkButton></li
                </HeaderTemplate> 
                <ItemTemplate> 
                    <li> 
                        <asp:LinkButton ID="SingleItem" runat="server" /> 
                    </li> 
                </ItemTemplate> 
                <FooterTemplate> 
                    <li> 
                        <asp:LinkButton ID="NextPage" runat="server" Text="<%$Resources:NextPage %>"></asp:LinkButton></li
                    </ol> 
                </FooterTemplate> 
            </asp:Repeater> 
            <asp:Repeater ID="PageRepeaterHyperLink" runat="server"
                <HeaderTemplate> 
                    <ol class="sf_pager"
                        <li> 
                            <asp:HyperLink ID="PreviousPage" runat="server" Text="<%$Resources:PreviousPage %>"></asp:HyperLink></li
                </HeaderTemplate> 
                <ItemTemplate> 
                    <li> 
                        <asp:HyperLink ID="SingleItem" runat="server" /> 
                    </li> 
                </ItemTemplate> 
                <FooterTemplate> 
                    <li> 
                        <asp:HyperLink ID="NextPage" runat="server" Text="<%$Resources:NextPage %>"></asp:HyperLink></li
                    </ol> 
                </FooterTemplate> 
            </asp:Repeater> 
        </LayoutTemplate> 
    </telerik:Pager> 

    To implement paging both at the Top and Bottom, how should I proceed? Because we cannot have the same IDs for more than one control. I believe that the backend for paging is implemented using those IDs.

    Can anyone have an idea on how to implement this???


    -Dinesh.


  2. Dinesh
    Dinesh avatar
    46 posts
    Registered:
    03 Aug 2009
    13 Aug 2009
    Link to this post
    It works if we just change the ID of pager.

    -Thanks
  3. Radoslav Georgiev
    Radoslav Georgiev avatar
    3370 posts
    Registered:
    01 Feb 2016
    13 Aug 2009
    Link to this post
    Hello Dinesh,

    We are happy to see that you we able to sort this issue out. If you have any other questions, do not hesitate to contact us.

    Regards,
    Rado
    the Telerik team

    Instantly find answers to your questions on the newTelerik Support Portal.
    Check out the tipsfor optimizing your support resource searches.
Register for webinar
3 posts, 0 answered