[SOLVED] Node property in pagination configuration

Hi guys

I want to configure the pagination viewhelper.

<typo3cr:widget.paginate parentNode="{parentNode}" as="paginatedNodes" configuration="{itemsPerPage: 5}"> 

I have a node property named numberOfElements for the itemsPerPage config.

<typo3cr:widget.paginate parentNode="{parentNode}" as="paginatedNodes" configuration="{itemsPerPage: {numberOfElements}}"> 

This does not work, of course… But how can I pass the property to the pagination config?

This should work if a variable numberOfElements is passed to the template :

<typo3cr:widget.paginate ... configuration="{itemsPerPage: numberOfElements}"  >

Regards Martin

1 Like

Thanks a lot!