[TYPO3-english] How to insert additionalparams with more than 2 level for f:link.page

bernd wilke t3ng at bernd-wilke.net
Thu Sep 12 15:02:46 CEST 2013


I need a list of all paginated pages of a news list.

my try so far:

<f:for each="{news}" as="dummy" iteration="newsiterator">
<v:var.set name="pagenumbermod" 
value="{f:cObject(typoscriptObjectPath:'lib.calc',data:'{newsiterator.index} 
% {settings.list.paginate.itemsPerPage}')}" />
<v:var.set name="pagenumber" 
value="{f:cObject(typoscriptObjectPath:'lib.intcalc',data:'{newsiterator.index} 
/ {settings.list.paginate.itemsPerPage} + 1')}" />

<f:if condition="{pagenumbermod}==0">

     <f:link.page pageUid="776" additionalParams="{tx_news_pi1: '{ 
@widget_0:\'{currentPage: pagenumber}\'}'}">page {pagenumber}</f:link.page>
     <br />

   </f:if>
</f:for>

but the links are broken:
the generated HTML:

<a 
href="http://domain.tld/pressemitteilungen/?tx_news_pi1=%7B%20%40widget_0%3A%27Array%27%7D&amp;cHash=a55d723ae94b5729247c3e76bf72e07d">page 
1</a>
<br>
<a 
href="http://domain.tld/pressemitteilungen/?tx_news_pi1=%7B%20%40widget_0%3A%27Array%27%7D&amp;cHash=a55d723ae94b5729247c3e76bf72e07d">page 
2</a>
<br>
:

The params seam broken:
?tx_news_pi1={ @widget_0:'Array'}&cHash=a55d723ae94b5729247c3e76bf72e07d
instead of
?tx_news_pi1[@widget_0][currentPage]=123


bernd
-- 
http://www.pi-phi.de/cheatsheet.html


More information about the TYPO3-english mailing list