Skip to content

Commit

Permalink
Error on previous/next button fix (#3218)
Browse files Browse the repository at this point in the history
  • Loading branch information
hexplor committed Apr 29, 2024
1 parent b9d76f3 commit b2d526f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
1. [](#bugfix)
- Regression: Mobile Menu fix (#3198)
- Joomla 5 FontAwesome 6 bugfix (#3196)
- Error on previous/next button fix (#3218)
# 5.5.17
## 10/30/2023
1. [Common](#common)
Expand Down
4 changes: 2 additions & 2 deletions engines/joomla/nucleus/particles/contentarray.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -150,8 +150,8 @@

{% if total > limit.total and display.pagination_buttons %}
<div class="g-content-array-pagination">
<button class="button float-left contentarray-button pagination-button pagination-button-prev" data-id="{{ id }}" data-start="{{ max(0, start - limit.total) }}"{{ start - limit.total < 0 ? ' disabled' }}>{{ 'GANTRY5_ENGINE_PREV'|trans }}</button>
<button class="button float-right contentarray-button pagination-button pagination-button-next" data-id="{{ id }}" data-start="{{ start + limit.total }}"{{ start + limit.total >= total ? ' disabled' }}>{{ 'GANTRY5_ENGINE_NEXT'|trans }}</button>
<button class="button float-left contentarray-button pagination-button pagination-button-prev" data-id="{{ id }}" data-start="{{ max(0, start - limit.total|int|default(0)) }}"{{ start - limit.total|int|default(0) < 0 ? ' disabled' }}>{{ 'GANTRY5_ENGINE_PREV'|trans }}</button>
<button class="button float-right contentarray-button pagination-button pagination-button-next" data-id="{{ id }}" data-start="{{ start + limit.total|int|default(0) }}"{{ start + limit.total|int|default(0) >= total ? ' disabled' }}>{{ 'GANTRY5_ENGINE_NEXT'|trans }}</button>
<div class="clearfix"></div>
</div>
{% endif %}
Expand Down
2 changes: 1 addition & 1 deletion engines/joomla/nucleus/particles/contentarray.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ form:
overridable: false

article.limit.total:
type: input.text
type: input.number
label: Number of Articles
description: Enter the maximum number of articles to display.
default: 2
Expand Down

0 comments on commit b2d526f

Please sign in to comment.