User tests: Successful: Unsuccessful:
This PR just removes the pagination.php for the new installations because this method to override the pagination is deprecated and might be confusing.
The new place to override this is in the path layouts/joomla/pagination/
Apply patch and see if still all paginations are shown correctly.
Status | New | ⇒ | Pending |
Category | ⇒ | Front End Templates (site) |
@coolcat-creations can you add the file you are removing also here: https://github.com/joomla/joomla-cms/blob/staging/administrator/components/com_admin/script.php#L580
thanks
Labels |
Added:
?
|
Category | Front End Templates (site) | ⇒ | Administration com_admin Front End Templates (site) |
Umm protostar isn't using the new methods. If you're going to delete this file you need to replace it with the 'correct' way of doing things with JLayout's :)
I don't think protostar is using the default (hence why it has an override and why @franz-wohlkoenig is seeing a change in the behaviour). I don't know if the override is really necessary tho? @coolcat-creations is the designer amongst us :)
The pagination.php is deprecated but still can be used due to BC.
You see it in the pagination/pagination.php among others in line 526
// Keep B/C for overrides done with chromes $chromePath = JPATH_THEMES . '/' . $this->app->getTemplate() . '/html/pagination.php';
In fact jLayout is the way to do it. I don´t want to delete existing pagination.php with this PR, i just want to remove these deprecated files.
As Protostar is not using overrides it does use the core layouts which are already all rewritten for the frontend. The pagination.php in isis still has to remain.
Any decision on this?
Honestly, I'd say just leave it alone until 4.0. It's not hurting anything right now.
It wouldn´t hurt either to remove it :-) It´s deprecated as written in the file comments and useless... ;) But you decide...
There are markup differences between what https://github.com/joomla/joomla-cms/blob/staging/layouts/joomla/pagination/link.php produces and what the current file produces. So it will hurt to remove it by causing changes to the output (the most glaring change is the hidden-phone
class on items).
ok
Status | Pending | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2017-02-28 13:22:50 |
Closed_By | ⇒ | coolcat-creations |
Re-opening and marking to be re-evaluate for J4.
Status | Closed | ⇒ | New |
Closed_Date | 2017-02-28 13:22:50 | ⇒ | |
Closed_By | coolcat-creations | ⇒ |
Status | New | ⇒ | Pending |
Title |
|
Protostar's gone in 4.0, what's to re-evaluate?
\libraries\src\CMS\Pagination\Pagination.php
so that we are sure that we are using the layout now and that the deprecated code there is in fact removed
https://github.com/joomla/joomla-cms/tree/4.0-dev/templates/aurora/html - No override there, so we're good on that part.
https://github.com/joomla/joomla-cms/tree/4.0-dev/administrator/templates/atum/html - That one's using the file, need to get that right.
Then, we just need to finish the removal of deprecated code in the class supporting the html/pagination.php
file in templates.
And we need to check all the core views where pagination is implemented. It´s implemented always in a slightly different way.
Closing. As far as i can tell j4 is no longer using an override anywhere
Status | Pending | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2018-01-04 19:06:36 |
Closed_By | ⇒ | brianteeman |
I have tested this item✅ successfully on c153c0c
This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/14191.