User tests: Successful: Unsuccessful:
Since the navigation for multi-page articles (plugins/content/pagebreak.pagebreak.php) can't be template-overridden (unlike the article navigation in pagenavigation.php, which can), we could make some basic improvements to it in the core. This is what I did for my site and I think could be beneficial in general:
Add CSS classes to the prev/next links, so they can be stylized via CSS. Currently they have no class.
When we are on the first page, there is little point in showing a blank unclickable "prev" link. Same thing for when we are on the last page and the "next link", I think they shouldn't be shown at all.
Technically, it would be ideal to use (create) a different language string for these next/prev links, as they are not the generic next/prev article links, but they represent next page/previous page. By having a different language string (like JPREV_PAGE and JNEXT_PAGE) we can individually value these as "PREV PAGE" and "NEXT PAGE".
Of course, if we do this, an additional language string with "PREV PAGE" and "NEXT PAGE" respectively should be created.
This is my first pull request and I had a hard time figuring out how to set it up so excuse any possible mistake.
Status | New | ⇒ | Pending |
Category | ⇒ | Front End Plugins |
Labels |
Added:
?
|
I don't have any specific test instructions as there are just display changes or underlying code changes, as in, there is not much to "test" :D
Hello, what is the status of this small fix being added? Newer and newer Joomla updates keep coming out yet this keeps seeming to be left out, so I'm finding myself to always having to core-override it on each update.
Thanks :)
Nothing has happened because no one has tested it.
I have tested this item
Missing language strings.
On first page:
Notice: Undefined variable: prev in C:\xampp\htdocs\joomla-cms\plugins\content\pagebreak\pagebreak.php on line 378
On last page:
Notice: Undefined variable: next in C:\xampp\htdocs\joomla-cms\plugins\content\pagebreak\pagebreak.php on line 378
Of course, if we do this, an additional language string with "PREV PAGE" and "NEXT PAGE" respectively should be created.
As I did mention, the language strings should of course be created, if someone with more wisdom with their locations and correct placements can add them to the correct language file for this PR, it would be appreciated, as I'm not familiar with the conventions you guys use there.
$prev
and $next
have to be initialized.
JNEXT
and JPREV
are located in \administrator\language\en-GB\en-GB.ini
and \language\en-GB\en-GB.ini
so the new strings should be added to these files.
Status | Pending | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2018-01-05 13:49:24 |
Closed_By | ⇒ | AndySDH |
@AndySDH do you have Test Instructions? Congrats to your first PR.