[Neos] Problem with cache using typo3cr:widget.paginate

Christopher Hlubek hlubek at networkteam.com
Fri Jul 25 19:18:33 CEST 2014


Hi Piseth,

you can use caching and a paginator with some additional configuration (I hope we can make this more straight-forward in upcoming releases):

page.body.content.main.default.element. at cache.entryIdentifier.paginatorArguments = ${request.httpRequest.arguments['--posts-paginator'].currentPage}
page. at cache.entryIdentifier.paginatorArguments = ${request.httpRequest.arguments['--posts-paginator'].currentPage}
root. at cache.entryIdentifier.paginatorArguments = ${request.httpRequest.arguments['--posts-paginator'].currentPage}

This depends on a widget id in Fluid: <typo3cr:widget.paginate widgetId="posts-paginator" ...> and of course the name of your main ContentCollection (here it is in "content.main"). The idea is to include the request argument for the current page to all caching layers up to the root.

I hope that helps, for me the configuration above works.

Greetings,

Christopher

Am 22.07.2014 um 10:06 schrieb Piseth Sok <piseth at web-essentials.asia>:

> This below solved my problem:
> 
> @cache {
> 	mode = 'uncached'
> 	context {
> 		1 = 'site'
> 		2 = 'node'
> 	}
> }
> 
> On 07/21/2014 04:31 PM, Piseth Sok wrote:
>> It does not change the content and also the pagination not move to the
>> next page. It seem like cache problems.
>> 
>> Piseth,
>> 
>> 
>> On 07/21/2014 03:23 PM, Marcin Ryzycki wrote:
>>> The snippet you provided seems to be right.
>>> 
>>> You mean the content inside
>>> <typo3cr:widget.paginate>...</typo3cr:widget.paginate>
>>> doesn't change or the paginator itself?
>>> 
>>> M.
>>> 
>>> 
>>> Piseth Sok wrote:
>>>> Hi list,
>>>> 
>>>> I use this view helpser:
>>>> 
>>>> <typo3cr:widget.paginate parentNode="{parentNode}" as="paginatedNodes"
>>>> nodeTypeFilter="TYPO3.Neos:Page" configuration="{itemsPerPage: 5,
>>>> insertAbove: 1, insertBelow: 0, maximumNumberOfLinks: 10,
>>>> maximumNumberOfNodes: 350}">
>>>> 
>>>> 
>>>> </typo3cr:widget.paginate>
>>>> It generates pagination, but when I click to next page it does not
>>>> change.
>>>> 
>>>> Any idea?
>>>> Thanks,
>>>> Piseth
> _______________________________________________
> Neos mailing list
> Neos at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/neos



More information about the Neos mailing list