OS Property support center

Custom pagination layout

  • Jaime
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
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):
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.

More
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

Please Log in or Create an account to join the conversation.

Moderators: Mr. DamNguyen Phu Quan