[TYPO3-english] TSRef: FLUIDTEMPLATE no tt_content rendering f:cObject not working :(
Kay Strobach
typo3 at kay-strobach.de
Fri Apr 8 07:43:52 CEST 2011
Hi,
i've recently uploaded the extension - it's called basictemplate.
It may take some time to become available in TER.
Regards
Kay
Am 08.04.2011 07:36, schrieb Kay Strobach:
> 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
More information about the TYPO3-english
mailing list