[TYPO3-english] TSRef: FLUIDTEMPLATE no tt_content rendering f:cObject not working :(

GallupCurrent Support tech at gallupcurrent.com
Fri Apr 8 16:20:42 CEST 2011


Yes, I am interested in seeing your extension, thanks!

I use TV throughout on this particular site, but need an alternate
page typeNum for generating KML (google maps) files. That is a pain
with TV. I was hoping that FLUIDTEMPLATE would work... we shall see.
I'll try accessing the exact FLOW3 action that I am using to generate
the page and see if that works.

On Thu, Apr 7, 2011 at 11:36 PM, Kay Strobach <typo3 at kay-strobach.de> wrote:
> Hi
>
> i've done it like this:
>
>                10 = FLUIDTEMPLATE
>                10 {
>                        file            = EXT:basictemplate/Resources/Public/Templates/main.html
>                        layoutRootPath  = EXT:basictemplate/Resources/Public/Layouts/
>                        partialRootPath = EXT:basictemplate/Resources/Public/Partials/
>                        variables {
>                                content = CONTENT
>                                content {
>                                        table          = tt_content
>                                        select.orderBy = sorting
>                                        select.where   = colPos = 0
>                                }
>                        }
>                }
>
> as the way mentioned in the manual hasn't worked for me either :(
>
> I have a small extension with a complete fluid example.
> Are you interested?
>
> Regards
> Kay
>
> Am 08.04.2011 02:41, schrieb GallupCurrent Support:
>> How did you eventually fix this? I have tried both the {var ->
>> f:format.raw()} and the <f:cObject
>> typoscriptObjectPath="lib.mainContent" /> methods in 4.5.2 and in
>> 4.6-div with extbase/fluid 1.3 and 1.4-dev
>>
>> Neither of the methods render the template file... I cannot figure out
>> what I have wrong here. When I used fluid 1.3 and the {var ->
>> f:format.raw()} method I did get an error saying that fluid could not
>> analyze the raw method (or similar), which indicated that fluid was
>> processing the template file.
>>
>> However, now, even with the simplest setup, I get no output:
>>
>> page = PAGE
>> page.10 = FLUIDTEMPLATE
>> page.10 {
>>   file = fileadmin/templates/Alpha/fluid/Templates/index-oneCol.html
>>   variables {
>>     content < styles.content.get
>>   }
>> }
>>
>>
>> page.includeCSS {
>>   alpha = fileadmin/templates/Alpha/res/css/styles.css
>> }
>>
>> <f:section name="body">
>>     <div id="content">
>>         {content -> f:format.raw()}
>>     </div>
>> </f:section>
>>
>> I get a <body> tag... but don't even get the <div id="content">... its
>> like I am missing some TS setup or something!
>>
>>
>>
>>> Hi,
>>>
>>> finally i got most of it into production...
>
>
> --
> http://www.kay-strobach.de - Open Source Rocks
> _______________________________________________
> TYPO3-english mailing list
> TYPO3-english at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english
>


More information about the TYPO3-english mailing list