How to include 'page 2' etc on search results pages
Submitted by bingobongo on Thu, 2008-08-21 23:11 in Price Tapestry
Hey,
Excellent product, works super well :-)
Just a quick one about paging - how can I get search result pages to display 'page 2' etc in the of pages i.e. on http://www.etoys.ie/search/relevance/trampoline/2.html
To display the page number anywhere within any of the HTML modules included by search.php (the scripts in the /html/ folder), you can simply use the variable $page. If the script is in HTML mode, just use:
<?php print $page; ?>
...otherwise where in PHP mode (within the PHP tags) just $page on its own:
Hi,
Thanks for your comments!
To display the page number anywhere within any of the HTML modules included by search.php (the scripts in the /html/ folder), you can simply use the variable $page. If the script is in HTML mode, just use:
<?php print $page; ?>
...otherwise where in PHP mode (within the PHP tags) just $page on its own:
print $page;
...or as part of a string:
print "You are on page ".$page;
Hope this helps!
Cheers,
David.