Skip to content

Commit

Permalink
fixed uri pattern
Browse files Browse the repository at this point in the history
  • Loading branch information
Marvin Kuhn committed Feb 12, 2018
1 parent 0d04538 commit 5d60f0a
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Configuration/Routes.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
-
name: 'Paginate for Breadlesscode.Listable'
uriPattern: '{node}<defaultUriSuffix>?<parameterName>={currentPage}'
uriPattern: '{node}<paginationUriSeperator>{currentPage}<defaultUriSuffix>'
defaults:
'@package': 'Neos.Neos'
'@controller': 'Frontend\Node'
Expand Down
2 changes: 1 addition & 1 deletion Configuration/Settings.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Neos:
'Breadlesscode.Listable':
position: 'before Neos.Neos'
variables:
parameterName: 'page'
paginationUriSeperator: '--page'
defaultUriSuffix: '.html'
Neos:
fusion:
Expand Down
2 changes: 1 addition & 1 deletion Resources/Private/Fusion/Component/Collection.fusion
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ prototype(Breadlesscode.Listable:Collection) < prototype(Neos.Fusion:Component)
execute = ${ value.execute() }
}
}
# default flow query implementaion
# default flow query and array implementaion
default {
condition = ${ true }
renderer = ${ Type.instance(props.collection, 'Neos\Eel\FlowQuery\FlowQuery') ? props.collection : q(props.collection) }
Expand Down
2 changes: 1 addition & 1 deletion Resources/Private/Fusion/Component/List.fusion
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ prototype(Breadlesscode.Listable:List) < prototype(Neos.Fusion:Component) {
paginated = ${ true }
paginationConfig = Breadlesscode.Listable:PaginationConfig

@context.currentPage = ${request.arguments.currentPage || 1}
@context.currentPage = ${ request.arguments.currentPage || 1 }

renderer = Neos.Fusion:Array {
@context.collection = Neos.Fusion:RawArray {
Expand Down

0 comments on commit 5d60f0a

Please sign in to comment.