This website can use cookies to improve the user experience

This website can use cookies to improve the user experience and to provide certain services and functions to users. Cookies contain small amounts of information (such as login information and user preferences) and will be stored on your device.

Enable All Cookies Privacy Policy

Previous search results page... how to


avatar
cosmin 269
From: -
Previous search results page... how to

I noticed today that if a search returns several pages of results, you can click next and go to the next page of results, but once there, there is no direct link to the previous page of results. You can only go back with the "Back" button. How can I get it to work?

Notice

This topic is archived. New comments cannot be posted and votes cannot be cast.

Responses to this topic


1 Re: Previous search results page... how to
avatar
Administrator
1340
From: Vienna, Austria
Previous search results page... how to

You could modify the template search_next_page like this:

<?php

global $insert;

($insert['search_start'] > 100) ? $prev = "<a href="https://www.contentteller.com/javascript:history.go(-1)">Previous page</a> | " : $prev = "" ;

$EST_TEMPLATE = <<<TEMPLATE

<!-- Template search_next_page -->
<br />
$prev <a href="https://www.contentteller.com/search.php?for=$insert[search_query]&cat=$insert[search_where]&start=$insert[search_start]">Next matches</a>
<br />

TEMPLATE;
?>

Notice

This topic is archived. New comments cannot be posted and votes cannot be cast.