[TYPO3-english] Using normal parsefunc inside my own userFunc
Tapio Markula
tapio.markula at xetpoint.fi
Wed Nov 26 16:18:37 CET 2008
Hi
If I have
includeLibs.hsme_string = fileadmin/ext-templates/user_myreplace.inc
tt_content.text.20 {
parseFunc {
...
userFunc=user_myreplace->user_myreplace
# how to configure userFunc to use parseFunc, which is used for the
field 'bodytext'
userFunc.xxx = xxx
}
}
}
How to use inside my own userFunc
parseFunc to handle 'bodytext' like it has been normally handled
I presume that I need to use function parseFunc - but how to configure
it correctly?
function user_myreplace($content="",$conf=array()) {
...
while ($contentRow = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($contents)) {
...
$replacedContent.='<div>.'.$this->cObj->parseFunc($contentRow['bodytext'],$conf).'</div>';
}
More information about the TYPO3-english
mailing list