Hallo liebe Gemeinde,
Ich habe folgendes Problem mit tt_news. In der Template-Single-Ansicht macht Typo3 aus meinem Template-Code etwas total anderes.
Der Originalcode lautet:
<table width="390" border="0" cellpadding="0" cellspacing="0">
<tr align="left">
<td colspan="3" valign="top"><div id="news-date">###NEWS_DATE### ###NEWS_TIME###</div>
<div id="news-headline">###NEWS_TITLE### <br /></div></td>
</tr>
<tr>
<td width="125" align="right" valign="top"><img src="fileadmin/templates/ggg/pics/pixel.gif" width="125" height="5" alt="" /></td>
<td width="5"><img src="fileadmin/templates/ggg/pics/pixel.gif" width="5" height="1" alt="" /></td>
<td width="265" align="left" valign="top"><img src="fileadmin/templates/ggg/pics/pixel.gif" width="265" height="5" alt="" /></td>
</tr>
<tr>
<td width="125" align="right" valign="top">###NEWS_IMAGE### </td>
<td width="5"><img src="fileadmin/templates/ggg/pics/pixel.gif" width="5" height="1" alt="" /></td>
<td width="265" align="left" valign="top"><div id="news-lead">###NEWS_SUBHEADER###</div></td>
</tr>
<tr align="left">
<td colspan="3" valign="top"><img src="fileadmin/templates/ggg/pics/pixel.gif" width="390" height="5" alt="" /></td>
</tr>
<tr align="left">
<td colspan="3" valign="top"><p>###NEWS_CONTENT### <br />
###TEXT_LINKS###<br />
###NEWS_LINKS###<br />
###TEXT_RELATED###<br />
###NEWS_RELATED### <br />
###TEXT_FILES###<br />
###FILE_LINK###</p>
<!--###LINK_ITEM###--> ###BACK_TO_LIST### <!--###LINK_ITEM###--></td>
</tr>
</table>
und Typo3 macht daraus
<table width="390" border="0" cellpadding="0" cellspacing="0">
<tr align="left">
<td colspan="3" valign="top"><div id="news-date"> 7.03.06 17:35</div>
<div id="news-headline"><font face="verdana" size="3"><strong>Berlin: Demo gegen Polens Präsident</strong></font> <br /></div></td>
</tr>
<tr>
<td width="125" align="right" valign="top"><img src="fileadmin/templates/ggg/pics/pixel.gif" width="125" height="5" alt="" /></td>
<td width="5"><img src="fileadmin/templates/ggg/pics/pixel.gif" width="5" height="1" alt="" /></td>
<td width="265" align="left" valign="top"><img src="fileadmin/templates/ggg/pics/pixel.gif" width="265" height="5" alt="" /></td>
</tr>
<tr>
<td width="125" align="right" valign="top"><table border="0" cellpadding="0" cellspacing="0" align="right" width="1"><tr><td>
<img src="clear.gif" width="15" height="1" border="0" alt="" /></td><td><img src="uploads/pics/lechkaczynski.jpg" width="120" height="60" border="0" alt="" title="" /></a><img src="clear.gif" width="1" height="10" border="0" class="spacer-gif" alt="" title="" /><br /><font face="verdana" size="1">Lech Kaczynski<img src="clear.gif" width="1" height="5" border="0" class="spacer-gif" alt="" title="" /><br /></font><br /></td></tr></table> </td>
<td width="5"><img src="fileadmin/templates/ggg/pics/pixel.gif" width="5" height="1" alt="" /></td>
<td width="265" align="left" valign="top"><div id="news-lead"><p><strong><em>Anlässlich des Deutschlandbesuchs (...) auf.</em></strong></p></div></td>
</tr>
<tr align="left">
<td colspan="3" valign="top"><img src="fileadmin/templates/ggg/pics/pixel.gif" width="390" height="5" alt="" /></td>
</tr>
<tr align="left">
<td colspan="3" valign="top"><p><p>Lech Kaczynski (...) ausgesetzt.</p> <br />
<br />
<br />
<br />
<br />
<br />
</p>
<a href="index.php?id=429&tx_ttnews[pointer]=1&cHash=8c91778cb1"> <- Zurück zu: News </a></td>
</tr>
</table>
Das Bild wird also verkleinert, und links davon ein 15-px-Rand eingefügt. Warum macht er das?
Liebe Grüße aus Wien,
Herwig