[TYPO3-ect] Improvement of the template engine

Elmar Hinz elmar.DOT.hinz at team.MINUS.red.DOT.net
Wed Mar 15 19:21:46 CET 2006


Jan-Hendrik Heuing [DD] schrieb:


> <!-- ###somewrapperifthereiscontentinthetable### -->

The ###ifThereIsContentInTheTable### is one of the most important
points for me, it the ### style will still keep interesting for me.
Empty wrappers are really ugly.

There is also some interesting code in vcd_library I wrote 2 years
ago. It provides "nested ### Templates" and can give a partly answer
to your question.

But the overall question is, if you need to code any ###fThereIs###
testing logic explicitly into the extension or not. If you have to do
it, you can't disconnect the programming from the template layout. I
already mentioned this in the beginnig of this thread.

If it is evaluated automatically like in Franz examples it will still
be usefull.

###IF::FIELDNAME1 || FIELDNAME2###
 <wrapwrap>

  ###IF::FIELDNAME1###
   <p>###LABEL::FIELDNAME1### : ###FIELD::FIELDNAME1###  </p>
  ###ENDIF###

  ###IF::FIELDNAME2###
   <p>###LABEL::FIELDNAME2### : ###FIELD::FIELDNAME2###  </p>
  ###ENDIF###

 </wrapwrap>
###ENDIF###

Regards

Elmar




More information about the TYPO3-team-extension-coordination mailing list