Talk:Extension Development, using HTML-Templates
From TYPO3Wiki
I am looking for information about how to replace a marker with a subpart. I have an html some thing like this
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="content-type">
<title>Category Display</title>
<meta content="viyyer" name="author">
</head>
<body>
<table>
<tbody>
<tr>
<!-- ###CATYEAR### starts here -->
<td>
<div class="year">###DATEYEAR###</div>
</td>
<td>
<div class="category">###CATCATEGORY###</div>
</td>
<!-- ###CATYEAR### ends here -->
<!--###NEWSSTORIES### starts here -->
###DATA###
<!--###NEWSSTORIES### starts here -->
</tr>
</tbody>
</table>
</body>
</html>
<!-- ###EMPTY### -->
<!-- ###EMPTY### -->
<!-- ###CATNEWS### starts here -->
<td>
<div class="content" align="center">
<h1> ###TOPIC###</h1>
<h2>###NEWSCATDATE###</h2>
<h3>###NEWSCAT###</h3>
<span>###NEWSCATBODY###</span>
</div>
</td>
<!-- ###CATNEWS### ends here -->
Q: How do I replace ###DATA### with ###CATNEWS###?
A: First get the ###CATNEWS### subpart. Then replace the marker with that subpart. Then replace the subpart with ""
