- Posts: 21
- Thank you received: 0
OS Property support center
Custom pagination layout
- Jaime
- Topic Author
- Offline
- Junior Member
-
Less
More
11 years 4 months ago - 11 years 4 months ago #40199
by Jaime
Custom pagination layout was created by Jaime
Hello...
Just to confirm something. I was trying to customize the listing pagination layout by doing the usual joomla way, however, it did not work.
By investigating , I have seen this commented code in helpers/pagination.php (method getPagesLinks):
With that code, the _list_render function is called, instead of my custom one.
What was the goal of that? do I need to costomize pagination in other file I have not discovered yet?
Before modifying the core files to allow pagination customization, plese clarify me this. Thanks.
Jaime
Just to confirm something. I was trying to customize the listing pagination layout by doing the usual joomla way, however, it did not work.
By investigating , I have seen this commented code in helpers/pagination.php (method getPagesLinks):
Code:
/*
$chromePath = JPATH_THEMES.DS.$mainframe->getTemplate().DS.'html'.DS.'pagination.php';
if (file_exists($chromePath))
{
require_once ($chromePath);
if (function_exists('pagination_item_active') && function_exists('pagination_item_inactive')) {
$itemOverride = true;
}
if (function_exists('pagination_list_render')) {
$listOverride = true;
}
}
*/
$itemOverride = false;
$listOverride = false;
With that code, the _list_render function is called, instead of my custom one.
What was the goal of that? do I need to costomize pagination in other file I have not discovered yet?
Before modifying the core files to allow pagination customization, plese clarify me this. Thanks.
Jaime
Last edit: 11 years 4 months ago by Jaime.
Please Log in or Create an account to join the conversation.
- Mr. Dam
-
- Offline
- Administrator
-
Less
More
- Posts: 13059
- Thank you received: 1697
11 years 4 months ago #40202
by Mr. Dam
Replied by Mr. Dam on topic Re: Custom pagination layout
Hi Jaime,
Because OS Property doesn't use the pagination of Joomla core, so we should make the custom pagination class. It works a bit different. You can modify the core files to allow pagination customization, because we don't have plan to make any changes in that files in future.
Thanks
Dam
Because OS Property doesn't use the pagination of Joomla core, so we should make the custom pagination class. It works a bit different. You can modify the core files to allow pagination customization, because we don't have plan to make any changes in that files in future.
Thanks
Dam
Please Log in or Create an account to join the conversation.
Moderators: Mr. Dam, Nguyen Phu Quan
Support
Documentation
Information
Copyright © 2025 Joomla Extensions by Joomdonation. All Rights Reserved.
joomdonation.com is not affiliated with or endorsed by the Joomla! Project or Open Source Matters.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.