[TYPO3-ttnews] tt_news extension: Trouble replacing markers

Michael Miousse michael.miousse at infoglobe.ca
Fri Dec 12 14:24:17 CET 2008


mark schoenbaechler wrote:

> Hi,
> 
> With the help of the kickstarter and Google I managed to add two new
> fields to tt_news. Now I am having trouble replacing the markers in the
> template for the SINGLE news display. (I must add that this is my first
> extension I am working on).
> 
> My class that should replace the markers in the tt_news template is the
> following:
> 
> [PHP]
> class tx_lparticles_additionalMarkers {
>     function extraItemMarkerProcessor($markerArray, $row, $lConf, &$obj) {
>         $markerArray['###AUTHORLIST###'] =
>         $obj->pi_RTEcssText($row['tx_lparticles_lp_authors']);
>         $markerArray['###SOURCE###'] =
>         $obj->pi_RTEcssText($row['tx_lparticles_lp_sources']); return
>         $markerArray;
>     }
> }
> [/PHP]
> 
> The markers are being replaced alright (if I substitute the $obj->...part
> with a string, the markers are replaced by those), but the resulting tags
> remain empty. Well, at least I am not getting any errors anymore...  :D I
> suppose that there is something wrong with my DB-query.
> 
> Can somebody help? I would be grateful for any help!
> 
> /Mark.
Anything in $row?

and what does your ext_localconf.php looks like?
-- 
Michael Miousse
Infoglobe
michael.miousse at infoglobe.ca


More information about the TYPO3-project-tt-news mailing list