[Neos] using layout file for sharing template over multiple page types

Christopher Hlubek hlubek at networkteam.com
Tue Jan 14 17:45:08 CET 2014


Hi Dominic,

yes, the TYPO3.Neos:Page prototype is extending TYPO3.TypoScript:Array for the different parts of the page output and is not a Template object, only the parts like "page.body" are of the type Template.

Greetings,

Christopher

Am 13.01.2014 um 12:57 schrieb Dominic Garms <djgarms at gmail.com>:

> Hi Christopher,
> 
> My whole approach went into the wrong direction. I simply adjusted all head and body parts to another file. the Page Object does not have a layoutRootPath, but it is also not necessary, I completely overlooked the additional templatePath for each section.
> 
> Regards,
> Dominic
> 
> On 13/01/14 09:14, Christopher Hlubek wrote:
>> Hi Dominic,
>> 
>> the Template TypoScript object has a "layoutRootPath" property that should work as expected.
>> 
>> Greetings,
>> 
>> Christopher
>> 
>> Am 12.01.2014 um 20:19 schrieb Dominic Garms <djgarms at gmail.com>:
>> 
>>> Hello,
>>> 
>>> In TYPO3 CMS I always used layouts for multiple page types through the "layoutRootPath".
>>> 
>>> ### Main.html page file
>>> Resource/Private/Page/Main.html:
>>> <f:layout name="Default"/>
>>> <f:section name="Main">
>>> (...)
>>> </f:section>
>>> 
>>> ### Project.html page file
>>> Resource/Private/Page/Project.html:
>>> <f:layout name="Default"/>
>>> <f:section name="Main">
>>> (...)
>>> </f:section>
>>> 
>>> ### Default.html layout file
>>> Resource/Private/Layouts/Default.html:
>>> (...)
>>> <f:render section="Main"/>
>>> (...)
>>> 
>>> Is this possible in Neos? I could not find an example, the chapter inside of the demo package copies the template sections into both files.
>>> 
>>> Regards,
>>> Dominic
>>> _______________________________________________
>>> Neos mailing list
>>> Neos at lists.typo3.org
>>> http://lists.typo3.org/cgi-bin/mailman/listinfo/neos
>> 
> 
> _______________________________________________
> Neos mailing list
> Neos at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/neos



More information about the Neos mailing list