[TYPO3-ect] lib/div: parsing cObj-bodytext
Jochen Rau
j.rau at web.de
Sat Jun 2 01:00:40 CEST 2007
Hello,
I want to realize a parser for text of cObjects with lib/div to
auto-generate a glossary e.g.. The parser is called with
tt_content.text.20.postUserFunc = tx_contagged_controllers_parse->main
tt_content.text.20.postUserFunc < plugin.tx_contagged.configurations
For this part of the extension, I don't need a view, because the content
should be processed directly (the list-plugin already works fine).
How can I access the bodytext of cObj the best way? The following
solution seems not to be very clever (it's too late now ;-) ).
$out = $this->parameters->controller->cObj->data['bodytext'];
The bodytext should be parsed through the parseFunc_RTE. I've managed
this by making a local_cObj:
$local_cObj = tx_div::makeInstance('tslib_cObj');
$out = $local_cObj->parseFunc($out,$conf,'< lib.parseFunc_RTE');
Is there a solution to do this via lib/div?
Regards
Jochen
More information about the TYPO3-team-extension-coordination
mailing list