Вопрос

I've got the paginationwidget

   <f:widget.paginate objects="{jobs}" as="paginatedJobs" configuration="{itemsPerPage: 4, insertAbove: 1, insertBelow: 1, addQueryStringMethod :{querystring : querystring}}">

And i want to insert the value of itemsPerPage via TypoScript, so i tried

{itemsPerPage: {settings.itemsPerPage}, insert....}

The Result is an Error: The argument "configuration" was registered with type "array", but is of type "string" in view helper...

The same when i try to us it in the alias-Tag

<f:alias map="{number: {settings.itemsPerPage}}">

Is there a possibility to get it working? I need this value in my Controller so it should be the same in the template...

Это было полезно?

Решение

Here the answer made from my comment, because it seems to work :)

At least for the <f:alias> it should work with <f:alias map="{number: settings.itemsPerPage}">.

The widget config might work this way as well. Sskip the {...} around settings.itemsPerPage.

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top