Pagination in front end Module Joomla

风格不统一 提交于 2019-12-11 21:04:03

问题


I've searching trough google for a way of adding pagination into a module, but i could only find information about adding it into components like here:

How to add pagination for component front end (Joomla 2.5)

Is it posible to implement this same principles to make a pagination for a module?, or a different approach is needed?


回答1:


I think this is not the correct way of doing to try to implement pagination in a joomla module. Normally, only component are made to be able to use standard Joomla pagination, because it uses itself models and view controller...

The example we see on the link you propose is using pagination from the view controller (view.html.php), witch extend JViewLegacy (witch is an alias for JView). Pagination is natively supported by it.

I imagine you need to show many items pages on a module, but maybe reload the page for it is not the best option. You can perhaps try to load more items, and to use a JS script to do pagination (even a slider can do it nicely), or simply to add a link to the whole section of the associated component.



来源:https://stackoverflow.com/questions/26067570/pagination-in-front-end-module-joomla

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!