[TYPO3-dev] Template issues

Steffen Kamper steffen at sk-typo3.de
Fri Mar 7 19:47:57 CET 2008


"Dmitry Dulepov [typo3]" <dmitry at typo3.org> schrieb im Newsbeitrag 
news:mailman.1.1204914886.28158.typo3-dev at lists.netfielders.de...
> 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
>
> -- 

and don't mix up names for subparts and names for markers, use different 
names.

vg  Steffen 






More information about the TYPO3-dev mailing list