[TYPO3-templavoila] Templavoila adding tags
Sakarias Ingolfsson
sakki at sakki.net
Sat Jul 28 19:37:46 CEST 2007
Hello
I have been expreiencing that TV has been adding two closing DIVs to my
template. I map the DIVs calendar_links and news_latest_links (see code
below) as ELEMENT and INNER (Exclude tag). Editing type is TypoScript
object path.
I am using Typo3 4.1 and TV 1.1.1 I have not been able to update TV,
because the extension manager throws a memory error when updating.
Here is the effected fragment from the original template
<div id=right_column>
<h2>Denne måneden</h2>
<div id=calendar_links>
<p>1.april 18:00 <a>Kveldsmoete! Tale ved Jan</a></p>
<p>9.april 12:00 <a>Lunsjmoete med diskusjon.</a></p>
<p>11.april 20:00 <a>Ungdomsmoete med lovsang</a></p>
<p>15.april 18:00 <a>Gode gamle tider</a></p>
</div>
<h2>Nyheter</h2>
<div id=news_latest_links>
<p>15.mars <a>Grettne gamle gubber</a></p>
<p>11.mars <a>Dagfinn griper mikrofonen</a></p>
<p>9.mars <a>Jostein gaar berserk og flyr</a></p>
<p>1.mars <a>Hyggelig kveld paa bedehuset</a></p>
</div>
</div>
And this is how it looks after TV adds the extra closing DIV
<div id=right_column>
<h2>Denne måneden</h2>
<div id=calendar_links>
<p>1.april 18:00 <a>Kveldsmoete! Tale ved Jan</a></p>
<p>9.april 12:00 <a>Lunsjmoete med diskusjon.</a></p>
<p>11.april 20:00 <a>Ungdomsmoete med lovsang</a></p>
<p>15.april 18:00 <a>Gode gamle tider</a></p>
</div>
</div>
<h2>Nyheter</h2>
<div id=news_latest_links>
<p>15.mars <a>Grettne gamle gubber</a></p>
<p>11.mars <a>Dagfinn griper mikrofonen</a></p>
<p>9.mars <a>Jostein gaar berserk og flyr</a></p>
<p>1.mars <a>Hyggelig kveld paa bedehuset</a></p>
</div>
</div>
</div>
I tried to change the original DIV tags to SPAN or P, but neither of it
worket. I did, however, notice where TV adds the extra closing DIV
before the other one.
In a post from early this year a user complained about TV adding an
extra closing BODY tag and therefore preventing itself to map the
document. Thit person got a lot of answers, most of them pointing out
that the document was not valid HTML.
My template passed the HTML 4.0 validator and containes no illegal tags.
Neither does it conatin coditional tags. The document contains the
following tags: HTML, HEAD, TITLE, LINK, BODY, DIV, P, H1, H2, IMG and A.
I asked myself if this could be due to a charset problem. The document
is written in Norwegian and originally contained the characters æ, ø and
å. I tried to remove them, but it did not change the results. The
current template only contains the following characters: a-Z0-9&,.-_<>"/=:;!
Well... I believe that I have tried all of the most obvious soultions.
Is there anyone who has any idea what causes this behavior.
Best Regards
Sakarias Ingolfsson
More information about the TYPO3-project-templavoila
mailing list