[FLOW3-general] Fluid Templates in Phoenix

Jacob Floyd cognifloyd at gmail.com
Wed Jul 11 13:24:40 CEST 2012


Hello everyone, 

I've written a blog post explaining the background of why I'm using 
phoenix[1] and another about using fluid templates in Phoenix[2].

I'm hoping that people on this list can help me understand a few things:

In my section on terminology[3], have I defined Layouts > Templates > 
Partials correctly?
Do we ever create "layouts" (Resources/Private/Layouts) in Phoenix? It 
seems that Phoenix defines the base layout so that it can include the 
phoenix stuff in the header. Then, it only provides the body, headerData, 
and stylesheets sections. What about having a "javascripts" section after 
the body section? That would create a standard way to add JavaScript files 
to the end of the document instead of in the head.

Conceptually, how do we want to have 'sub-templates' (templates that apply 
to a certain branch of the site) defined in a site? Is this something that 
should be in TypoScript, or perhaps in Sites.xml, or somewhere else 
entirely? (Yes, I understand that the UI has not been created yet. I'm ok 
with that.) See the section on mutiple templates[4] for more thoughts on 
this.

If any plans have been made, or the concepts defined, what plans/concepts 
are there with regard to templating in Phoenix? Where would something like 
selecting a template "fit" in the UI?

I guess as a stop-gap, I can create a TypoScript object that inserts a 
similar layout variable... Or perhaps there's a way to inject a variable in 
the fluid template based on where in the page tree it's being rendered? 
Does Sites.xml provide a way to have custom variables that are made 
available in Fluid?

Any suggestions? Maybe someone has already done 

[1] 
http://cognifloyd.blogspot.com/2012/07/converting-from-typo3v4-to-phoenix.html
[2] http://cognifloyd.blogspot.com/2012/07/fluid-templating-from-v4-to-phoenix.html
[2] http://cognifloyd.blogspot.com/2012/07/fluid-templating-from-v4-to-phoenix.html#terminology
[2] http://cognifloyd.blogspot.com/2012/07/fluid-templating-from-v4-to-phoenix.html#multiple-templates


More information about the FLOW3-general mailing list