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.5.8
    SS 1.9.2

    I have the SimpleSearch pagination (mostly) working, except that the First/Last and Previous/Next links are not rendering. I have all the pagination Chunks configured so I'm not sure what's missing.
      Todd
      • 36549
      • 572 Posts
      Could you post your code and/or link to the page?
        www.9thwave.co.uk
           WEB | DESIGN | PRINT
        • 40088
        • 708 Posts
        Sure, here's everything (I think). Also, the site is not online so I can't offer a link.

        Search Wrapper
        [[!SimpleSearchForm@SS?
        	&tpl=`SearchFormTpl`
        	&landing=`35`
        ]]

        Search Form
        <form action="[[~[[+landing:default=`[[*id]]`]]]]" method="[[+method:default=`get`]]">
            <fieldset>
                <input type="text" name="search" id="search" value="" placeholder="Search">
                <input type="hidden" name="id" value="">
                <button type="submit" value="Search">Search</button>
            </fieldset>
        </form>

        Landing Page
        [[!SimpleSearch@SS?
            &elementClass=`modSnippet`
            &toPlaceholder=`results_found`
        ]]
        [[!+results:notempty=`[[+results_found]]`]]

        &containerTpl
        [[+resultInfo]]
        <ol>
            [[+results]]
        </ol>
        <nav>
            <ul>
                [[+pageCount:is=`1`:then=``:else=`[[+paging]]`]] 
            </ul>
        </nav>

        &pageTpl
        <li>
        	<a href="[[+link]]">[[+text]]</a>
        </li>

        &tpl
        <li>
            <h3>
                <a href="[[+link:is=``:then=`[[~[[+id]]]]`:else=`[[+link]]`]]" title="[[+longtitle]]">[[+pagetitle]]</a>
            </h3>
            [[+extract]]
        </li>

        &pageFirstTpl, &pageLastTpl, &pageNextTpl, &pagePreviousTpl
        <li>
        	<a href="[[+link]]">First</a>
        </li>

        <li>
        	<a href="[[+link]]">Last</a>
        </li>

        <li>
        	<a href="[[+link]]">Next</a>
        </li>

        <li>
        	<a href="[[+link]]">Previous</a>
        </li>
          Todd