Skip to content

Commit

Permalink
Merge pull request #44 from rolandschuetz/FEATURE/pagination-rel-attr…
Browse files Browse the repository at this point in the history
…ibutes

FEATURE: Add rel attributes for pagination
  • Loading branch information
ahaeslich authored Oct 9, 2023
2 parents 00661f7 + 0f6b8d6 commit 0f6d983
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Resources/Private/Fusion/Pagination.fusion
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ prototype(Flowpack.Listable:Pagination) < prototype(Neos.Fusion:Component) {
renderer = Neos.Fusion:Tag {
@process.tmpl = ${'<li class="previous">' + value + '</li>'}
tagName = 'a'
attributes.rel = 'prev'
attributes.href = Neos.Neos:NodeUri {
node = ${documentNode}
additionalParams = Flowpack.Listable:PaginationParameters {
Expand All @@ -59,6 +60,7 @@ prototype(Flowpack.Listable:Pagination) < prototype(Neos.Fusion:Component) {
renderer = Neos.Fusion:Tag {
@process.tmpl = ${'<li class="next">' + value + '</li>'}
tagName = 'a'
attributes.rel = 'next'
attributes.href = Neos.Neos:NodeUri {
node = ${documentNode}
additionalParams = Flowpack.Listable:PaginationParameters {
Expand Down

0 comments on commit 0f6d983

Please sign in to comment.