[TYPO3-dam-devel] RFC: #12127: Markers not replaced when editing document

Dan Osipov dosipov at phillyburbs.com
Thu Oct 29 20:37:00 CET 2009


Done: http://bugs.typo3.org/view.php?id=12398

Dan Osipov
Calkins Media
http://danosipov.com/blog/

Michiel Roos [netcreators] wrote:
> Benjamin Mack schreef:
>> Hi Dan,
>>
>> I just looked into that, how about fixing this in the TYPO3 core
>> automatically?
>>
>> in the file typo3/template.php we could modify the method "moduleBody"
>> from:
>>
>> // replacing all markers with the finished markers and return the HTML
>> content
>> return t3lib_parsehtml::substituteMarkerArray($moduleBody, $markerArray,
>> '###|###');
>>
>> with:
>> // replacing all markers with the finished markers and return the HTML
>> content
>> $content = t3lib_parsehtml::substituteMarkerArray($moduleBody,
>> $markerArray, '###|###');
>> return preg_replace("/###([^#]*?)###/", '', $content);
>>
>>
>> What do you think? Would you like to prepare a patch for 4.2 and 4.3
>> trunk and send it to the core list?
> 
> That sounds like a great idea!
> 
> 


More information about the TYPO3-team-dam mailing list