[TYPO3-ect] MVC pagination results via xajax

Elmar Hinz elmar07 at googlemail.com
Fri Nov 30 17:24:43 CET 2007


Philip Almeida wrote:

> 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.



Hi Philip,

as announeced a while ago I stripped the pipeline of processors out of lib
for differnt reasons today and published a new version to TER. So it's 
tx_lib_resultBrowserSpl again in the TER version. PoP will be moved to an
addon extension of lib, for those who like to use it.

http://typo3.org/extensions/repository/view/lib/0.1.0/info/resultBrowser%252Fclass.tx_lib_resultBrowser_controller.php/

The problem is the same. The emplate path is still hardcoded for the
resultBrowser. 

Simply extend the classes and overwrite the methods:

tx_lib_resultBrowserSpl->buildAs
tx_lib_resultBrowser_controller-> defaultAction

Regards

Elmar






























More information about the TYPO3-team-extension-coordination mailing list