[TYPO3-mvc] Best practise for extdirect and extbase
Kevin Ulrich Moschallski
km at 3digit.de
Thu Apr 28 16:03:11 CEST 2011
On 2011-04-28 15:16:01 +0200, Dennis Ahrens said:
> Hi Kevin,
>
> do you write a plugin or a module? I've not tested the FE stuff since
> the backport of the FLOW3 package - would be greate to get some
> feedback related to FE.
>
> On 28.04.2011 14:52, Kevin Ulrich Moschallski wrote:
>> 1. The controller actions aren't usable for normal views, i.e. fluid
>> because the method $this->view->setConfiguration() doesn't exist in fluid.
>
> I've worked around this problem by using
>
> if ($this->request->getFormat() === 'extdirect') {
> // do DirectView related stuff
> }
>
> inside the action that should be usable for other formats, too.
>
>> 2. The possibility to use viewhelpers in combination with a basic
>> template for the actions would be nice, this also would fix problem 1. A
>> viewhelper would be nice i.e. for image manipulation. Currently i have a
>> very ugly workaround in my controller where i resize the image manualy
>> by copying the viewhelper logic.
>
> Don't get the point here - you like to use format.image ViewHelper to
> hand over the result inside a Ext.Direct response?
>
> regards
> Dennis
Hi Dennis,
i write a FE plugin. Your getFormat() condition shure works but i think
this should be the controller logic should be independent from the view.
To my second point:
Yes, i would like to use <f:uri.image /> for example to pass the result
to Ext.Direct. I thought about adding a _useViewHelper to the
setConfiguration() array. But in relation to the first point i think
the best solution would be a fluid like template engine to format the
result and additionaly use viewhelpers.
One question off topic, or related to the topic, i'm very new to extjs
and i desperately searching for a carousel extension similar to
jCarousel (http://sorgalla.com/jcarousel/) with endless loop support in
combination with Ext.Direct and a store. Do you know something or do
you maybe have a approach how to do this with an Ext.DataView?
Regards,
Kevin
More information about the TYPO3-project-typo3v4mvc
mailing list