[TYPO3-mvc] layout helper (for CSC)

Martin Kutschker masi-no at spam-typo3.org
Sun Jan 24 18:14:26 CET 2010


Hi!

In the blog example you find templates with snippets like that:

<div class="csc-header csc-header-n1"><h1 class="csc-firstHeader">Create a new blog</h1></div>
<p class="bodytext">Enter information about your new blog below:</p>

This means the template is built for one layout rendering "engine". That's not good. Worse is that
it doesn't take into account any TS configurations of (in this case) "CSS Styled Content" (CSC).

So I had the idea to add view helpers for that. My first idea was to create view helpers for CSC
directly. But that won't be forward compatible with v5. The second idea was to have a generic FLUID
syntax for common layout elements and create an extension that implements these elements in terms of
CSC.

The example from above could therefore be rewritten like that:

<f:layout.header level="1" count="1">Create a new blog</f:layout.header>
<f:layout.p>Enter information about your new blog below:</f:layout.p>

Comments are welcome.

Masi


More information about the TYPO3-project-typo3v4mvc mailing list