[TYPO3-core] RFC #16008: A new TypoScript cObject: FLUIDTEMPLATE

Bastian Waidelich bastian at typo3.org
Fri Oct 22 17:00:10 CEST 2010


Susanne Moog wrote:

Hi Susanne,

>> line 158:
>>> if (!is_array($cObjType)) {
>>
>> What if $cObjType *is* an array? Shouldn't that be handled somehow?
>
> No it shouldn't :) If you have a closer look there, you can see what
> happens, if you have some TS like this:
>
> variable = TEXT
> variable.bla = blubb

You're right.. I expected to be able to nest variables like
variables.foo.bar = TEXT
But that's probably not possible anyways.


>> - Somehow the autoloader is not initialized correctly [...]

> This may be because the ext_autoload.php of the blog example is broken
> (at least the TER version is), the line for the gravatar view helper is
> missing. If I add that line manually all works well.

I still didn't really get the ext_autoload thingy.. We communicate, that 
you don't need an ext_autoload.php file in your extensions as the 
Extbase autoloader resolves the filename if you follow the naming 
conventions.
I think it would be really unfortunate if you'd have to create this file 
and update it with every change...
And normally you don't have to create the ext_autoload.php file, so this 
should be fixed IMO.
I just looked into this and the problem is the line:
if (!class_exists('Tx_Extbase_Utility_ClassLoader')) {
This will never be TRUE, thus the autoloader won't be initialized.
I think, we can simply skip this check as spl_autoload_register() won't 
register the same loader twice.


>> - Sections do not work as intended(?). At least both examples from the
>> Steffens from 16.10. wouldn't work for me.
>
> For me neither until we realized that you have to hand over the used
> variables to the section (something like
>
> <f:render section="part2" arguments="{data:data,
> variable1:variable1}"></f:render>

Of course, I overlooked that.
Attached is a fixed version of the sample template that also makes use 
of the BlogExamples gravatar view helper (blog_example needs to be 
installed).

Best,
Bastian
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.typo3.org/pipermail/typo3-team-core/attachments/20101022/18df08c0/attachment-0001.html>


More information about the TYPO3-team-core mailing list