More in this section

Forums / Developing with Sitefinity / Search results

Search results

2 posts, 0 answered
  1. David
    David avatar
    26 posts
    Registered:
    12 Jul 2008
    14 Apr 2009
    Link to this post
    Hi,

    I am using SItefinity 3.6 and have a custom search results template. Within the template there are 2 repeaters:

    1. PageRepeaterLinkButton
    2. PageRepeaterHyperLink

    They are both required to be there otherwise an error is thrown. I want to use the hyperlinks one so that I have unique URLs for each page but I cannot find the setting to switch.

    Any help is appreciated.

    Thanks
    Dave Cooper
  2. Parvan
    Parvan avatar
    151 posts
    Registered:
    24 Sep 2012
    17 Apr 2009
    Link to this post
    Hi David,

    You need to set the RenderPageLinkAsUrl="true" attribute of the Pager control.
    Edit the file located at ~/Sitefinity/ControlTemplates/Search/SearchResult.ascx:
    <sfWeb:Pager ID="pager1" runat="server" RenderPageLinkAsUrl="true"
        <LayoutTemplate> 

    Don't hesitate to contact us if you have other questions.

    Sincerely yours,
    Parvan
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
2 posts, 0 answered