No Code Attached Yet Information Required ?
avatar angieradtke
angieradtke
25 Jun 2021

Steps to reproduce the issue

We used the pagination.php file, which we could copy to the template and overwrite it there.
This technique is now deprecated and has been replaced by the layouts.
Unfortunately, this only works halfway.
I noticed that while overwriting the output by customizing the layouts JQuery is still pulled, although I couldn't find anything in my code.

I haven't checked yet if this is still the case in 4.0.
File: libraries/src/Pagination/Pagination.php
Example:
if (function_exists('pagination_list_render')) { \JLog::add('pagination_list_render is deprecated. Use the layout joomla.pagination.list instead.', \JLog::WARNING, 'deprecated'); $listOverride = true; }

@Hackwar

avatar angieradtke angieradtke - open - 25 Jun 2021
avatar joomla-cms-bot joomla-cms-bot - change - 25 Jun 2021
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 25 Jun 2021
avatar angieradtke angieradtke - change - 25 Jun 2021
The description was changed
avatar angieradtke angieradtke - edited - 25 Jun 2021
avatar brianteeman
brianteeman - comment - 3 Jul 2021

Not enough information to go on.

avatar brianteeman
brianteeman - comment - 6 Feb 2022

No idea what this issue is about or what is expected. Maybe the bug squad should review it and make a decision to close?

avatar alikon alikon - change - 6 Feb 2022
Labels Added: No Code Attached Yet ?
Removed: ?
avatar alikon alikon - labeled - 6 Feb 2022
avatar richard67 richard67 - change - 6 Feb 2022
Labels Added: Information Required
avatar richard67 richard67 - labeled - 6 Feb 2022
avatar richard67
richard67 - comment - 6 Feb 2022

@angieradtke What's the problem? That jQuery is pulled and you don't know why? I'm not sure if I get this issue right. Have you meanwhile found time to check if it is also an issue with J4?

avatar Hackwar
Hackwar - comment - 6 Feb 2022

The problem is, that the pagination class throws a deprecation notice that the usage of the pagination file function thing-a-ma-bob is deprecated, but actually doesn't seem to use the layouts its suggesting in that same deprecation notice.

avatar richard67
richard67 - comment - 6 Feb 2022

The problem is, that the pagination class throws a deprecation notice that the usage of the pagination file function thing-a-ma-bob is deprecated, but actually doesn't seem to use the layouts its suggesting in that same deprecation notice.

@Hackwar I see. Do you know how it's in J4? And what would you suggest to do?

avatar Hackwar
Hackwar - comment - 6 Feb 2022

I didn't look into this in J4 and basically only looked at this half a year ago. I would have to start from scratch as well.

avatar Fedik Fedik - close - 6 Feb 2022
avatar Fedik
Fedik - comment - 6 Feb 2022

Should use $pagination->getPaginationLinks($layout),
if $layout is empty then will be used default joomla.pagination.links.

public function getPaginationLinks($layoutId = 'joomla.pagination.links', $options = array())

To customize the pagination, can create an override for layout joomla.pagination.links.

avatar Fedik Fedik - change - 6 Feb 2022
Status New Closed
Closed_Date 0000-00-00 00:00:00 2022-02-06 12:15:05
Closed_By Fedik
avatar Fedik Fedik - change - 6 Feb 2022
Status Closed New
Closed_Date 2022-02-06 12:15:05
Closed_By Fedik
avatar Fedik Fedik - reopen - 6 Feb 2022
avatar Fedik
Fedik - comment - 6 Feb 2022

I see that default Admin tables still use $pagination->getListFooter() wich uses of template-name/html/pagination.php,
Deprecation just means that we should switched to $pagination->getPaginationLinks($layout); that will use joomla.pagination.links.

Tricky issue, it still need to update all our list view to use new method.

avatar Fedik
Fedik - comment - 6 Feb 2022

Hm, but $pagination->getListFooter() is proxy to $pagination->getPaginationLinks() :)
So yeah, use override for joomla.pagination.links and delete emplate-name/html/pagination.php if your template use it.

Sorry for confusing :)

avatar richard67
richard67 - comment - 6 Feb 2022

@Fedik So it can be closed again?

avatar Fedik Fedik - change - 6 Feb 2022
Status New Closed
Closed_Date 0000-00-00 00:00:00 2022-02-06 12:26:31
Closed_By Fedik
avatar Fedik Fedik - close - 6 Feb 2022
avatar Fedik
Fedik - comment - 6 Feb 2022

Yeap ;)

Add a Comment

Login with GitHub to post a comment