[TYPO3] [TV][FCE] get current value ???

Dmitry Dulepov typo3 at fm-world.ru
Sat Feb 11 08:44:02 CET 2006


Michael Cannon wrote:
> Dmitry,
> 
> I understand the desire to not have HTML in the code. However, for the
> end result shown at http://sd.cannonbose.com/ since we're trying to
> reuse templates without dropping into hardcore CSS, the easiest solution
> is putting HTML into TV code. If you notice, the header and body content
> are separated.
> 
> If the CSS route was used, a content section frame would work well.
> Then, no HTML code in TV would've been needed.

I still do not understand why you cannot have all this in HTML file and
map it appropriately. It is not a question of CSS, it is a question of
proper mapping. You have this HTML in "wrap":

========================
<table width="225" height="100" border="1" align="center"
cellpadding="0" cellspacing="0" bordercolor="E6E6E6">
  <tr bgcolor="E6E6E6">
    <td colspan="2" bgcolor="E6E6E6" class="SpurDigitalName"><img
src="/images/spacer.gif" width="5" height="1">
    |
    </td>
  </tr>
========================

So, what prevents you from having this in HTML file and mapping <td> to
header field? This is how it should be done. Markup should not appear in
xml at all. TemplaVoila was made to avoid this...

What if you suddenly want to change design? You could either change HTML
and remap or add another TO and change FCE properties to use that TO.
Now you have to do one of these steps and additionally modify xml to
change markup there. This is not a proper way.

One purpose of TemplaVoila is to separate content from presentation. And
it is very well implemented. I see no reason to break it. Really.

May be you have a special case and how to put markup to xml but I still
cannot imagine any situation when it will be unavoidable...

Dmitry.
-- 
"It is our choices, that show what we truly are,
far more than our abilities." (A.P.W.B.D.)



More information about the TYPO3-english mailing list