[TYPO3-dev] Template issues

Osipov Dan dosipov at phillyburbs.com
Fri Mar 7 19:48:22 CET 2008


Thanks Dmitry, that's exactly what I was looking for!!
 
Dan

________________________________

From: typo3-dev-bounces at lists.netfielders.de on behalf of Dmitry Dulepov [typo3]
Sent: Fri 3/7/2008 1:34 PM
To: typo3-dev at lists.netfielders.de
Subject: Re: [TYPO3-dev] Template issues



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"
_______________________________________________
TYPO3-dev mailing list
TYPO3-dev at lists.netfielders.de
http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-dev






More information about the TYPO3-dev mailing list