Skip to content

Commit 5d60f0a

Browse files
author
Marvin Kuhn
committed
fixed uri pattern
1 parent 0d04538 commit 5d60f0a

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

Configuration/Routes.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
-
22
name: 'Paginate for Breadlesscode.Listable'
3-
uriPattern: '{node}<defaultUriSuffix>?<parameterName>={currentPage}'
3+
uriPattern: '{node}<paginationUriSeperator>{currentPage}<defaultUriSuffix>'
44
defaults:
55
'@package': 'Neos.Neos'
66
'@controller': 'Frontend\Node'

Configuration/Settings.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Neos:
55
'Breadlesscode.Listable':
66
position: 'before Neos.Neos'
77
variables:
8-
parameterName: 'page'
8+
paginationUriSeperator: '--page'
99
defaultUriSuffix: '.html'
1010
Neos:
1111
fusion:

Resources/Private/Fusion/Component/Collection.fusion

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ prototype(Breadlesscode.Listable:Collection) < prototype(Neos.Fusion:Component)
1818
execute = ${ value.execute() }
1919
}
2020
}
21-
# default flow query implementaion
21+
# default flow query and array implementaion
2222
default {
2323
condition = ${ true }
2424
renderer = ${ Type.instance(props.collection, 'Neos\Eel\FlowQuery\FlowQuery') ? props.collection : q(props.collection) }

Resources/Private/Fusion/Component/List.fusion

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ prototype(Breadlesscode.Listable:List) < prototype(Neos.Fusion:Component) {
66
paginated = ${ true }
77
paginationConfig = Breadlesscode.Listable:PaginationConfig
88

9-
@context.currentPage = ${request.arguments.currentPage || 1}
9+
@context.currentPage = ${ request.arguments.currentPage || 1 }
1010

1111
renderer = Neos.Fusion:Array {
1212
@context.collection = Neos.Fusion:RawArray {

0 commit comments

Comments
 (0)