? Pending

User tests: Successful: Unsuccessful:

avatar coolcat-creations
coolcat-creations
22 Feb 2017

Summary of Changes

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/

Testing Instructions

Apply patch and see if still all paginations are shown correctly.

image

avatar coolcat-creations coolcat-creations - open - 22 Feb 2017
avatar coolcat-creations coolcat-creations - change - 22 Feb 2017
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 22 Feb 2017
Category Front End Templates (site)
avatar franz-wohlkoenig franz-wohlkoenig - test_item - 22 Feb 2017 - Tested successfully
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 22 Feb 2017

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.

avatar coolcat-creations coolcat-creations - change - 22 Feb 2017
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - change - 22 Feb 2017
Category Front End Templates (site) Administration com_admin Front End Templates (site)
avatar coolcat-creations
coolcat-creations - comment - 22 Feb 2017

@dgt41 done - but if someone is using the deprecated method it will hopefully not be deleted with that? Thanks!

avatar wilsonge
wilsonge - comment - 22 Feb 2017

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 :)

avatar zero-24
zero-24 - comment - 23 Feb 2017

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 :)

Does protostar not just using the default? So there is no need to override it via the template? @wilsonge

avatar wilsonge
wilsonge - comment - 23 Feb 2017

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 :)

avatar coolcat-creations
coolcat-creations - comment - 23 Feb 2017

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.

avatar coolcat-creations
coolcat-creations - comment - 27 Feb 2017

Any decision on this?

avatar mbabker
mbabker - comment - 27 Feb 2017

Honestly, I'd say just leave it alone until 4.0. It's not hurting anything right now.

avatar coolcat-creations
coolcat-creations - comment - 28 Feb 2017

It wouldn´t hurt either to remove it :-) It´s deprecated as written in the file comments and useless... ;) But you decide...

avatar mbabker
mbabker - comment - 28 Feb 2017

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).

avatar coolcat-creations
coolcat-creations - comment - 28 Feb 2017

ok

avatar coolcat-creations coolcat-creations - change - 28 Feb 2017
Status Pending Closed
Closed_Date 0000-00-00 00:00:00 2017-02-28 13:22:50
Closed_By coolcat-creations
avatar coolcat-creations coolcat-creations - close - 28 Feb 2017
avatar brianteeman
brianteeman - comment - 7 Aug 2017

Re-opening and marking to be re-evaluate for J4.

avatar brianteeman brianteeman - change - 7 Aug 2017
Status Closed New
Closed_Date 2017-02-28 13:22:50
Closed_By coolcat-creations
avatar brianteeman brianteeman - change - 7 Aug 2017
Status New Pending
avatar brianteeman brianteeman - reopen - 7 Aug 2017
avatar brianteeman brianteeman - change - 7 Aug 2017
Title
[tpl_protostar] Delete pagination.php in protostar template (deprecated)
[4.0] [tpl_protostar] Delete pagination.php in protostar template (deprecated)
avatar brianteeman brianteeman - edited - 7 Aug 2017
avatar mbabker
mbabker - comment - 7 Aug 2017

Protostar's gone in 4.0, what's to re-evaluate?

avatar brianteeman
brianteeman - comment - 7 Aug 2017

\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

avatar mbabker
mbabker - comment - 7 Aug 2017

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.

avatar coolcat-creations
coolcat-creations - comment - 7 Aug 2017

And we need to check all the core views where pagination is implemented. It´s implemented always in a slightly different way.

avatar brianteeman
brianteeman - comment - 4 Jan 2018

Closing. As far as i can tell j4 is no longer using an override anywhere

avatar brianteeman brianteeman - change - 4 Jan 2018
Status Pending Closed
Closed_Date 0000-00-00 00:00:00 2018-01-04 19:06:36
Closed_By brianteeman
avatar brianteeman brianteeman - close - 4 Jan 2018

Add a Comment

Login with GitHub to post a comment