We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 21417
    • 486 Posts
    Hello,

    I am using EVO 1.0.4 with AjaxSearch 1.9.0.

    I have been setting up ajaxSearch in a website but I am a little stuck.

    How do I remove the paging at the top of the search results?
    eg - the:
    (Displaying 1 - 20 of 31)
    Pages: 1 | 2 
    


    I still want to keep it at the bottom but I don’t want to repeat it.

    Currently my results look like:
    31 results found for "demo".
    (Displaying 1 - 20 of 31)
    Pages: 1 | 2
    [search results]
    Pages: 1 | 2


    I want it to look like:
    31 results found for "demo".
    [search results]
    Pages: 1 | 2



    My results template is:
    [+as.noResults:is=`1`:then=`
      <div class="[+as.noResultClass+]">
        <p>[+as.noResultText+]</p>
      </div>
    `:else=`
     <div class="search-info">[+as.resultsFoundText+]</div>
      [+as.listGrpResults+]
      [+as.paging+]
    `+]
    [+as.showCmt:is=`1`:then=`
    [+as.comment+]
    `+]



    And my paging0 template is:
    [+as.tpl:is=`paging`:then=`
      <div class="search-paging">
        [+as.pagingText+]
        [+as.pagingLinks+]
      </div>
    `+]
    [+as.tpl:is=`pagingLinks`:then=`
      <a href="[+as.pagingLink+]">[+as.pagingText+]</a>[+as.pagingSeparator+]
    `+]
    [+as.tpl:is=`pagingLinksCurrent`:then=`
      <span class="current">[+as.pagingText+]</span>[+as.pagingSeparator+]
    `+]


    Any ideas?

    Thanks in advance.
      Web design Adelaide
      http://gocreate.com.au
      • 5811
      • 1,717 Posts
      How do I remove the paging at the top of the search results?
      By changing the templates/grpResults.tpl.html template file or better by using your own template with the &tplGrpResults parameter:

          &tplGrpResults : chunk to style the output results outer
                Group results outer layout (category name, number of results, list of results, paging)
                by default : /templates/grpResults.tpl.html

      Replace:
      [+as.grpResultsDef:is=`1`:then=`
      <div id="[+as.grpResultId+]" class="ajaxSearch_grpResult">
      [+as.headerGrpResult+]
      [+as.footerGrpResult+]
      [+as.listResults+]
      [+as.footerGrpResult+]
      </div>
      `:else=`
      <div class="ajaxSearch_grpResultName">[+as.grpResultNameShow:is=`1`:then=`[+as.grpResultName+]`+]
      <span class="ajaxSearch_grpResultsDisplayed">[+as.grpResultsDisplayedText+]</span></div>
      `+]
      by
      [+as.grpResultsDef:is=`1`:then=`
      <div id="[+as.grpResultId+]" class="ajaxSearch_grpResult">
      [+as.listResults+]
      [+as.footerGrpResult+]
      </div>
      `:else=`
      <div class="ajaxSearch_grpResultName">[+as.grpResultNameShow:is=`1`:then=`[+as.grpResultName+]`+]
      <span class="ajaxSearch_grpResultsDisplayed">[+as.grpResultsDisplayedText+]</span></div>
      `+]
      But keep in mind that by doing this you remove the display of the category names (and the number of displayed results) when you use the &category parameter.
      To see the differences look at this demo (uncategorized results) and this one (with categories)
        • 21417
        • 486 Posts
        Perfect coroico!
        That works a treat.
        No categories in this so no problemo!
        Thank you kindly.
          Web design Adelaide
          http://gocreate.com.au