We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 40088
    • 708 Posts
    Revo 2.3.2.
    SimpleSearch 1.9

    I'm using getPage with a property set (Custom Paging) to override the default pagination which works great when filtering by tag or author, but I just can't get it to work with SS which returns all results on one page.

    SimpleSearch call
    [[!SimpleSearch?
        &ids=`[[!getReqParam? &name=`parent`]]`
        &containerTpl=`Sisea Container`
        &tpl=`Sisea Results`
        &hideContainers=`1`
        &limit=`4`
        &highlightTag=`strong`
        &noResultsTpl=`No Results`
    ]]

    SimpleSearch &containerTpl
    [[+resultInfo]]
    [[+results]]

    SimpleSearch &tpl
    <li>
    <a href="[[+link:is=``:then=`[[~[[+id]]]]`:else=`[[+link]]`]]" title="[[+longtitle]]">[[+pagetitle]]</a>
    <p>[[+introtext:ellipsis=`180`]]</p>
    </li>

    getPage/getResources w/ property set
    [[!getPage@Custom Paging?
    &element=`getResources`
    &elementClass=`modSnippet`
    &hideContainers=`1`
    &pageVarKey=`page`
    &parents=`[[*id]]`
    &includeTVs=`1`
    &includeContent=`1`
    &limit=`4`
    &pageLimit=`5`
    &pageNavVar=`page.nav`
    ]]
    [[!+page.nav:notempty=`<nav>
    <ul class="pagination">
    <span class="pages">Page [[+page]] of [[+pageCount]]</span><br>[[!+page.nav]]
    </ul>
    </nav>`]]
      Todd