Getting pager to show on magento list(让寻呼机显示在 magento 列表中)
问题描述
我们目前有一个报价页面,其中列出了我们希望向寻呼机显示的所有现有报价.
We currently have a quote page which lists all existing quotes that we would like to show the pager.
我们在列表页面中有以下代码,我们已将调用添加到寻呼机,但它似乎根本没有显示前端.
We have the following code in the List page which we've added the call to the pager but it doesn't appear to be showing frontend at all.
我还添加了历史记录页面,该页面显示一个带有寻呼机的列表,作为我们尝试模拟的工作页面的示例.
I've also added the history page which displays a list with a pager as an example of a working page we are trying to emulate.
谁能指出我们正确的方向,因为我们似乎遗漏了什么
Can anyone point us in the right direction as we appear to be missing something
列表
历史
List 的布局块
推荐答案
我们可以通过在我们的块类中扩展 Mage_Catalog_Block_Product_List
类来实现带有 magento 分页的自定义模型集合.假设我想用分页显示用户博客文章.以下是轻松实现它的步骤:
We can implement custom model collection with magento pagination by extending Mage_Catalog_Block_Product_List
class in our block class. Suppose I want to display users blog posts with pagination. Here is the steps to implement it easily:
创建一个块类 (posts.php) 并在其中添加以下代码.
Create a block class (posts.php) and add the below code in it.
在view.phptml
文件中添加如下代码
这篇关于让寻呼机显示在 magento 列表中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!