+1-888-365-2779
Try Now
More in this section

Forums / Bugs & Issues / News Module Pagination invalid html

News Module Pagination invalid html

2 posts, 0 answered
  1. SUMO
    SUMO avatar
    5 posts
    Registered:
    14 Nov 2008
    30 Nov 2010
    Link to this post
    Hey Support,

    On the news module the pagination is generating invalid markup
    I'm using Sitefinity Version 3.7.2136

    The markup is

    01.<div class="pagination">
    02.                 
    03.             
    04.                    <a id="ctl00_PageContent_NewsView1_ctl00_ctl00_pager1_ctl00_PageRepeaterLinkButton_ctl01_SingleItem" class="sf_PagerSelItem" href="javascript:void(0)" href="javascript:__doPostBack('ctl00$PageContent$NewsView1$ctl00$ctl00$pager1$ctl00$PageRepeaterLinkButton$ctl01$SingleItem','')">1</a>
    05.             
    06.                    <a id="ctl00_PageContent_NewsView1_ctl00_ctl00_pager1_ctl00_PageRepeaterLinkButton_ctl02_SingleItem" class="sf_PagerItem" href="javascript:__doPostBack('ctl00$PageContent$NewsView1$ctl00$ctl00$pager1$ctl00$PageRepeaterLinkButton$ctl02$SingleItem','')">2</a>
    07.             
    08.                <a id="ctl00_PageContent_NewsView1_ctl00_ctl00_pager1_ctl00_PageRepeaterLinkButton_ctl03_NextPage" class="next" href="javascript:__doPostBack('ctl00$PageContent$NewsView1$ctl00$ctl00$pager1$ctl00$PageRepeaterLinkButton$ctl03$NextPage','')">Next page</a>
    09. 
    10.                </div>

    You can see on line 4 of the above code 2 hrefs are added.


    I'm using the following template for the news module

    <%@ Control Language="C#" %>
     
    <telerik:CssFileLink ID="CssFileLink1" EmbeddedFileName="Telerik.News.Resources.ControlTemplates.Frontend.newsCommonLayout.css" FileName="" Media="screen" runat="server" />
     
    <asp:HyperLink ID="backLink" runat="server" Text="<%$Resources:GoBack %>"></asp:HyperLink>
    <ul class="news-list">
    <asp:Repeater ID="repeater" runat="server">
        <HeaderTemplate>
             
        </HeaderTemplate>
        <ItemTemplate>
         
            <li>
                <div class="imageHolder">
                    <asp:PlaceHolder ID="ThumbnailHolder" runat="server">
                        <asp:Image ID="Thumbnail" ImageUrl="/images/internals/news-list_no-img.gif" runat="server" />
                    </asp:PlaceHolder>
                </div>
                <h3><asp:Literal ID="Title" runat="server"></asp:Literal></h3>
                <p class="date"><asp:Literal ID="Publication_Date" runat="server" Text="{0}" /></p>
                <p><asp:Literal ID="Summary" runat="server" Text=""></asp:Literal>
                <br /><asp:HyperLink ID="fullContent1" runat="server">Read More</asp:HyperLink></p>
            </li>
        </ItemTemplate>
         
        <FooterTemplate>
             
        </FooterTemplate>
    </asp:Repeater>
    </ul>
     
     
    <telerik:Pager ID="pager1" runat="server">
        <LayoutTemplate>
            <asp:Repeater ID="PageRepeaterLinkButton" runat="server">
                <HeaderTemplate>
                    <div class="pagination">
                    <asp:LinkButton ID="PreviousPage" CssClass="prev" runat="server" Text="<%$Resources:PreviousPage %>"></asp:LinkButton>
                </HeaderTemplate>
                <ItemTemplate>
                        <asp:LinkButton ID="SingleItem" runat="server" />
                </ItemTemplate>
                <FooterTemplate>
                    <asp:LinkButton ID="NextPage" CssClass="next" runat="server" Text="<%$Resources:NextPage %>"></asp:LinkButton>
                    </div>
                </FooterTemplate>
            </asp:Repeater>
            <asp:Repeater ID="PageRepeaterHyperLink" runat="server">
                <HeaderTemplate>
                    <div class="pagination">
                    <asp:HyperLink ID="PreviousPage" CssClass="prev" runat="server" Text="<%$Resources:PreviousPage %>"></asp:HyperLink>
                </HeaderTemplate>
                <ItemTemplate>
                        <asp:HyperLink ID="SingleItem" runat="server" />
                </ItemTemplate>
                <FooterTemplate>
                    <asp:HyperLink ID="NextPage" CssClass="next" runat="server"  Text="<%$Resources:NextPage %>"></asp:HyperLink>
                    </div>
                </FooterTemplate>
            </asp:Repeater>
        </LayoutTemplate>
    </telerik:Pager>
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    09 Dec 2016
    30 Nov 2010
    Link to this post
    Hello Martin,

    Can you modify the pager as shown below

    <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>

    I am not able to replicate the issue on IE 8 and FF 3.6 using the above declaration.

    Regards,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
2 posts, 0 answered