Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
services
t3o sites
typo3.org
typo3.org
Commits
bc1b001a
Commit
bc1b001a
authored
Dec 19, 2019
by
Thomas Löffler
Browse files
Correct pagination for events
parent
5eeabdfa
Pipeline
#8238
passed with stages
in 3 minutes and 32 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
config/sites/t3org/config.yaml
View file @
bc1b001a
...
...
@@ -110,9 +110,9 @@ routeEnhancers:
plugin
:
Pievent
routes
:
-
{
routePath
:
'
/'
,
_controller
:
'
Event::list'
}
-
{
routePath
:
'
/{page}'
,
_controller
:
'
Event::list'
,
_arguments
:
{
'
page'
:
'
@widget_0/currentPage'
}
}
-
{
routePath
:
'
/
page/
{page}'
,
_controller
:
'
Event::list'
,
_arguments
:
{
'
page'
:
'
@widget_0/currentPage'
}
,
_requirements
:
{
'
page'
:
\d+
}
}
-
{
routePath
:
'
/{event_category}/all'
,
_controller
:
'
Event::list'
,
_arguments
:
{
'
event_category'
:
'
overwriteDemand/category'
}
}
-
{
routePath
:
'
/{event_category}/all/{page}'
,
_controller
:
'
Event::list'
,
_arguments
:
{
'
event_category'
:
'
overwriteDemand/category'
,
'
page'
:
'
@widget_0/currentPage'
}
}
-
{
routePath
:
'
/{event_category}/all/
page/
{page}'
,
_controller
:
'
Event::list'
,
_arguments
:
{
'
event_category'
:
'
overwriteDemand/category'
,
'
page'
:
'
@widget_0/currentPage'
}
,
_requirements
:
{
'
page'
:
\d+
}
}
-
{
routePath
:
'
/{event_title}'
,
_controller
:
'
Event::detail'
,
_arguments
:
{
'
event_title'
:
'
event'
}
}
-
{
routePath
:
'
/{event_title}/ical'
,
_controller
:
'
Event::icalDownload'
,
_arguments
:
{
'
event_title'
:
'
event'
}
}
defaultController
:
'
Event::list'
...
...
extensions/t3org_layout/Resources/Private/Extensions/SfEventMgt/Templates/Event/List.html
View file @
bc1b001a
...
...
@@ -34,7 +34,7 @@
<div
class=
"row"
>
<div
class=
"{f:if(condition:'{categories -> f:count()} > 1',then:'col-md-8',else:'col-md-12')}"
>
<div
id=
"accordion"
role=
"tablist"
aria-multiselectable=
"true"
>
<f:widget.paginate
objects=
"{events}"
as=
"paginatedEvents"
configuration=
"{itemsPerPage: 10, insertAbove: 0, insertBelow: 1, maximumNumberOfLinks: 10}"
>
<f:widget.paginate
objects=
"{events}"
as=
"paginatedEvents"
configuration=
"{itemsPerPage: 10, insertAbove: 0, insertBelow: 1, maximumNumberOfLinks: 10
, addQueryStringMethod: 'GET'
}"
>
<f:for
each=
"{paginatedEvents}"
as=
"event"
>
<f:render
partial=
"Event/ListItem"
arguments=
"{_all}"
/>
</f:for>
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment