[TYPO3-content-rendering] remapTag: tags are remapped multiple times

Robert Markula robert.markula at gmx.net
Fri Mar 31 00:32:03 CEST 2006


Hi list,
Tags in 'remapTag' are hierarchically remapped/double-remapped. Uh... 
don't know how to describe the problem more accurately, perhaps an 
example is better:
With this code...

   lib.parseFunc_RTE.nonTypoTagStdWrap.encapsLines.remapTag {
     H1 = h2
     H2 = h3
     H3 = h4
     H4 = h5
     }

... the header <h1>...</h1> in the RTE gets remapped to <h3> instead of 
<h2>.

What I can think of what happens is this:
1. <h1> gets remapped to <h2> correctly.
2. But <h2> gets remapped again, that is, to <h3>!
3. The multiple rendering stops here. I have no idea why it does not get 
rendered as <h5>.
4. <h3> gets rendered in the FE, althought with the above code, it 
should be <h2>.

IMHO the remapping should only be done one time, because otherwise this 
whole remapping is be pretty useless in the above case.

Btw, I'm using Typo3 4.0 RC 1.

Regards,
Ro



More information about the TYPO3-project-content-rendering mailing list