[TYPO3-ect] MVC pagination results via xajax
Philip Almeida
philip.almeida at gmail.com
Fri Nov 30 16:49:32 CET 2007
Well I am working on a way to do the result browser via ajax now.
Meanwhile I think there is a "block" in the regular result browser because
it is not possible, as far as I know, to change the template.
Example:
tx_lib_resultBrowser_controller class defines the template folder and the
template file:
function defaultAction() {
$model = $this->makeInstance('tx_lib_resultBrowser_model');
$view = $this->makeInstance('tx_lib_resultBrowser_view', $model);
$view->setPathToTemplateDirectory('EXT:lib/resultBrowser/');
$view->render('template.php');
return $view->get('result');
}
tx_lib_resultBrowser_controller is called via class
tx_lib_resultBrowserProcessor.
But can we change the template folder and file on our controller file?:
// Result browser.
$pipe = $this->makeInstance('tx_lib_resultBrowserProcessor', $pipe);
$pipe->setTotalResultCountKey('totalResultCount'); // From the
model.
$pipe->setResultBrowserKey('resultBrowserWidget'); // For the
template.
$pipe->build();
Regards,
Philip
On Oct 3, 2007 7:05 PM, Elmar Hinz <elmar07 at googlemail.com> wrote:
> Philip Almeida wrote:
>
> > Hello ECT,
> >
> > does anyone tried to build a pagination system based in Elmar's new
> > browser results implementation but with ajax.
> >
> > Is it ready for some kind of xajax pagination? Did anyone tried it?
> >
> >
> > regards,
> >
> > philip
>
> Hi Philip,
>
> I didn't test this resultbrowser with xajax, but I am confident it that
> it's
> possible.
>
> Theory:
>
> You need to make the resulbrowser part of the dynamically exchanged part
> of
> the page.
>
> Additionally you need to enrich the links of the resultbrowser with
> onClick
> events to trigger the appropriate ajax calls. OnClick events are not build
> into the result browser by default. Probably you need to extend the
> resultbrowser class, where the links are generated.
>
> Regards
>
> Elmar
>
>
>
>
>
>
>
> _______________________________________________
> TYPO3-team-extension-coordination mailing list
> TYPO3-team-extension-coordination at lists.netfielders.de
>
> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-team-extension-coordination
>
--
--- --- --- --- --- --- --- --- ---
Philip de Oliveira de Almeida
More information about the TYPO3-team-extension-coordination
mailing list