Hi Folks,
to make the pagination Bootstrap 4 ready I tweaked the related Index.html in the Neos.ContentRepository package. As this is no savvy solution can I do such adjustments in my site package easily too?
Thanks in advance!
Hi Folks,
to make the pagination Bootstrap 4 ready I tweaked the related Index.html in the Neos.ContentRepository package. As this is no savvy solution can I do such adjustments in my site package easily too?
Thanks in advance!
Hi
You can override the template used by the Neos.ContentRepository for the pagination widget. It’s possible with Views.yaml
-
requestFilter: 'isPackage("Neos.FluidAdaptor") && isSubPackage("ViewHelpers\Widget") && isController("Paginate") && isAction("index")'
options:
templatePathAndFilename: 'resource://Vendor.App/Private/Templates/ViewHelpers/Widget/Paginate/Index.html'
Thanks @sorenmalling, works perfectly! Problem solved!
Sorry for the bump.
Just came across this topic and want to share a solution update. Maybe it will help someone. In my case (NEOS ~7.x) the “Neos.FluidAdaptor” is not longer the correct package in the requestFilter instruction. Use “Neos.ContentRepository.Search” instead:
requestFilter: 'isPackage("Neos.ContentRepository.Search") && isSubPackage("ViewHelpers\Widget") && isController("Paginate") && isAction("index")'