简体   繁体   English

分页完成后,我想在特定对象页面上进行下一个和上一个链接

[英]When pagination is done, I want to do next and previous links on particular object page

I'm working about some listing and gallery in codeigniter with PHP. 我正在使用PHP在codeigniter中处理一些列表和库。 I've done all the searches and good search result page with pagination. 我已经完成了所有搜索和具有分页功能的良好搜索结果页面。

Now when I click on position in my search results list it gets me into page with single result, description etc. 现在,当我单击搜索结果列表中的位置时,它将带我进入单个结果,说明等页面。

My question is: how to smartly make "next" and "previous"links on this single result page? 我的问题是:如何在此单个结果页面上巧妙地建立“下一个”和“上一个”链接? After clicking next it goes to the page of next result etc. 单击下一步后,将转到下一个结果等页面。

Is there any other way than storing full search results in some array while browsing? 除了在浏览时将完整搜索结果存储在某个数组中之外,还有其他方法吗?

You can store the search conditions instead (much smaller -> can be stored for a long time, so you don't need to obfuscate the UX by sometimes showing prev/next and sometimes not) and add some generic user-independent caching layer to the search results. 您可以改为存储搜索条件(小得多->可以存储很长一段时间,因此您不需要通过有时显示上一个/下一个(有时不是)来混淆UX),并向其中添加一些与用户无关的通用缓存层搜索结果。 (This assumes that search results are not personalized and don't change much in time.) (这假设搜索结果不是个性化的,并且不会随时间变化太多。)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何始终保留此 Codeigniter 3 分页中的“下一个”和“上一个”链接? - How do I always keep the "next" and "previous" links in this Codeigniter 3 pagination? jQuery分页插件-下一个/上一个分页链接显示下一个/上一个完整的页码组 - Jquery pagination plugin - Next/Previous pagination links to show next/previous full group of page numbers 创建下一个/上一个分页链接 - Creating Next/Previous pagination links 当只有两个页面时,codeigniter分页的前一个和最后一个链接被隐藏,而我想显示所有链接 - codeigniter pagination previous first and last links are hiding when there are only two pages, whereas i want to display all the links Wordpress分页导航:如何使“下一页”和“上一页”保持不变? - Wordpress pagination navigation: how do I make 'Next Page' and 'Previous Page' persist? PDO分页-指向上一页/下一页的链接不正确 - PDO Pagination - link to previous/next page not correct 始终使用CodeIgniter分页类显示上一个和下一个链接 - Always show Previous & Next links using CodeIgniter Pagination Class 搜索结果页面的前10个或后10个链接 - Previous or Next 10 links for search results page 使用PHP的上一页/下一页链接 - Previous/next page links using PHP 如何使用分页在自定义WordPress循环中添加下一个和上一个链接 - How to add next and previous links in custom WordPress loop with pagination
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM