[TYPO3-mvc] f:widget.paginate lost filter objects
Daniel Schöne
daniel at schoene.it
Thu Oct 6 19:58:40 CEST 2011
Hi Juan,
sorry I cannot upload the complete extension because it is a closed
source project I did for a customer of mine. But I will give you
extracts of the code used for inclusion of the pagination widget:
In this project i actually used an array containing an array of filters
plus a sorting string as "paginate filter". In the fluid template I
include the widget like this:
<f:widget.paginate objects="{immobilien}" as="pagedImmobilien"
configuration="{itemsPerPage: settings.itemsPerPage, insertAbove: 1,
insertBelow: 1}" filter="{searchFilter: searchFilter,sorting: sorting}">
my action looks like
https://gist.github.com/1268080
(don't mind the quickSearch and categorySearch parameters)
and the paginate fluid template looks like:
https://gist.github.com/1268067
BUT: as I said the approach is not really clean (and not feasible for a
pagination widget used by several extensions). I think it would be
better to include all POST/GET-params into link generation or add a
parameter containing variables which should be included in link
generation. Or someone else has a better idea to solve this issue?
hope this helps,
daniel
oh, the extension is running e.g. @
http://www.bendix-immobilien.de/wohnen/seite-2.html?tx_nbmaklertool_pi1[searchFilter][filterSelectorPropertyCategory]=filter_wohnung_zweizimmer&tx_nbmaklertool_pi1[sorting]=verwaltungtechn.objektnrextern%7Cdes
(sry only german;)
On Thu, 2011-10-06 at 18:14 +0200, Juan Manuel Vergés Solanas wrote:
> Daniel, for moment it doesn't work for me. I think that is because my
> filter isn't an array, it is model object that I pass to a custom
> repository function.... Maybe if I could see your code I could
> understand better,
> cheers
>
> _______________________________________________
> TYPO3-project-typo3v4mvc mailing list
> TYPO3-project-typo3v4mvc at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-project-typo3v4mvc
>
More information about the TYPO3-project-typo3v4mvc
mailing list