[TYPO3-dev] Template issues

Dmitry Dulepov [typo3] dmitry at typo3.org
Fri Mar 7 19:34:46 CET 2008


Hi!

Osipov Dan wrote:
> I am trying to apply templates to my extensions, and running into
> problem. I am using the wiki page about the HTML markers, and using
> the modified code from there.
> 
> So I've filled my HTML file with tags like this:
> 
> <!-- ###MARKER1### begin -->Sample content that has to be replaced by
> extension output<!-- ###MARKER1### end -->
> 
> Sometimes the entire line is replaced by the correct output, but more
> often just the text ###MARKER1### is replaced, so the output is
> commented out in HTML.

There are two things:
- subsections (this is <!-- ###XXX### begin -->xxx<!-- ###XXX### end -->
- markers (this is ###YYY### alone)

To replace marker you should use one of:
- substitueMarker
- substitueMarkerArray
- substitueMarkerArrayCache with markers in second parameter

To replace subsection you should use:
- substituteMarkerArray with subsections in third parameter

-- 
Dmitry Dulepov
TYPO3 core team
Web: http://typo3bloke.net/
Skype: callto:liels_bugs
"Nothing is impossible. There are only limits to our knowledge"




More information about the TYPO3-dev mailing list