[TYPO3-formidable] Re: [TYPO3-project-formidable] Reset/clear pager page number when doing new search
David Green
david at aikonmedia.co.uk
Wed Jan 27 00:45:27 CET 2010
Hi Gary,
>What I need is if the search form is submitted, then the page number
is >reset.
Just to get it noted down in this forum, I've just found the answer to
this one to be:
$this->aORenderlets["lister_name"]->bResetPager = TRUE;
But this must be called from the DataHandler, it doesn't work from the
sandbox. The Way I did it was to use the sandbox init() function (which
is processed first) to call another sandbox function that works whether
I want the pager reset or not. The result is set in a sandbox stored
variable as true or false. Then when the datahandler fires, a quick call
to check the sandbox var says whether or not to reset the pager as above.
Best wishes
David Green
More information about the TYPO3-project-formidable
mailing list