[Typo3] Problem with mapping under templavoila
Christopher
bedlamhotel at gmail.com
Fri Aug 12 17:22:38 CEST 2005
Hello,
On 12/08/05, Dmitry Dulepov <typo3 at fm-world.ru> wrote:
> Hi!
>
> Francois Suter wrote:
> > Well... The situation is different because you are mapping the BODY tag
> > to a Container (CO) object.
> >
> > When you map a tag to an Element (EL), the whole content of the tag is
> > replaced by the TV content, so it doesn't make sense to map anything
> > inside that tag. Or does it?
>
> Yes, this is correct. I was wrong.
>
...and for the original poster, the solution is simple: don't map the
structure, map the contents.
If your layout looked like this:
<table>
<tr>
<td>
<p>Lorem ipsum</p>
<p>dolor</p>
</td>
<td>
<p>Sit amet consectetuer</p>
</td>
</tr>
</table>
...the SECOND cell's content could be mapped by selecting the <td> and
choosing 'inner', but the FIRST cell's content could be mapped into
two parts by selecting the <p> elements and choosing 'outer'. This
means that the second cell will have one content area in the
conventional way, but the second will have two (or as many as you
need).
I also find this technique useful in some sites to provide flexibility
to what's shown in a content area; I map three parts in the same where
the middle one is for inserting content elements and the top and
bottom ones are mapped to empty TS objects. That way, if the client
later decides that they need a print link (or something) added just
below or above the main content, it becomes a very quick job to
implement it.
-Christopher
More information about the TYPO3-english
mailing list