[TYPO3-english] Testing user functions for bodytext area

Tapio Markula tapio.markula at xetpoint.fi
Tue Nov 18 13:20:06 CET 2008


Hi

I tested

includeLibs.hsme_string = fileadmin/ext-templates/user_myreplace.inc
tt_content.text.20 {
    parseFunc {
    userFunc=user_myreplace->user_myreplace
    }
    }
}

with

<?php
class user_myreplace{
	function user_myreplace($content="",$conf=array()) {
		$content=str_replace('[myreplace]','replace with this text',$content);
		return $content;
	}
}
?>

the $conf array was empty - how to define config in this case or in 
general for user functions?


More information about the TYPO3-english mailing list