[Typo3] Problem with mapping under templavoila

a.lim funkycms at axidea.fr
Tue Aug 16 09:37:28 CEST 2005


Thanks for your help.
I finally find another way. I just put new <div> in the HTML and I mapped in
an other way. Thanks anyway. I keep your tip for later it could be helpful.
I will post later if I got new problems.

Adam LIM,

-----Message d'origine-----
De : typo3-english-bounces at lists.netfielders.de
[mailto:typo3-english-bounces at lists.netfielders.de] De la part de
Christopher
Envoyé : vendredi 12 août 2005 17:23
À : TYPO3 English
Objet : Re: [Typo3] Problem with mapping under templavoila

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
_______________________________________________
Typo3-english mailing list
Typo3-english at lists.netfielders.de
http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english





More information about the TYPO3-english mailing list