[TYPO3-mvc] Pagination additional parameters

Thomas Nussbaumer typo3 at thomasnu.ch
Mon Sep 9 11:22:39 CEST 2013


Hello Jakub, You refer to this example?

Daniel Schöne daniel at schoene.it
Thu Oct 6 14:13:35 CEST 2011

the current paginate widget is not capable of forwarding filter
settings. You may want to store your filter in a session variable or
extend / rewrite the paginate widget. A while ago I needed the same
feature but I coded it directly into my fluid extension (see
https://gist.github.com/1267245) - not the clean way but it works. The
paginate fluid template must also be adopted so that each link contains
the filter as actionArgument - e.g.:

<f:widget.link arguments="{currentPage: pagination.previousPage}"
actionArguments="{filter}"><</f:widget.link>


As can be seen in https://gist.github.com/1267245, also 3 other files 
need to be patched in fluid. This is beyond my knowledge. But it should 
work.

Kind regards, Thomas

Am 08.09.2013 18:14, schrieb Jakub Zembala:
> Hello Thomas,
> once again thanks for advice. When i turn-on Debug mode, i see, that i
> have error in my (new) pagination template. When i fixed it, I saw the
> right pagination. :)
>
> Now is the question number two: how can i put into pagination links
> additional arguments (search filter) ? When i doing this in that way :
> http://lists.typo3.org/pipermail/typo3-project-typo3v4mvc/2011-October/010500.html
> The TYPO3 returns an error: " Argument "filter" was not registered.
> TYPO3\CMS\Fluid\Core\Parser\Exception thrown in file
> /....../public_html/typo3/sysext/fluid/Classes/Core/Parser/TemplateParser.php
> in line 529." - i think this is obvious, but how can a add this
> parameter to pagination widget ?
> As I say before, i have classes copy:
> PaginateController.php - http://pastebin.com/d3Nvby3d
> PaginateViewHelper.php - http://pastebin.com/jwfzbbzJ
> Index.html - http://pastebin.com/2M6VMbAB
>
> Kind regards, Jakub



More information about the TYPO3-project-typo3v4mvc mailing list