[TYPO3-dev] IMGTEXT and css_styled_content

Krystian Szymukowicz typo3RE.MO.VE. at RE.MO.VE.prolabium.com
Mon Jul 14 13:28:11 CEST 2008


Krystian Szymukowicz  wrote:
> 
> hi
> 
> I am trying to make tt_news to use css_styled_content for formatting 
> images and text in SINGLE VIEW.
> 
> 
> So far I manage to create IMGTEXT.
> 
> $this->cObj = t3lib_div::makeInstance('tslib_cObj');
> 
> $TS['conf'] = 'IMGTEXT';
> $TS['conf.']['text.']['10'] = 'TEXT';
> $TS['conf.']['text.']['10.']['value'] = $row['bodytext'];
> $TS['conf.']['textPos'] = 17;
> $TS['conf.']['imgList'] = $imgList;
> 
> $content = $this->cObj->cObjGetSingle($TS['conf'],$TS['conf.']);
> 
> It works but it's rendering images with 'table' and not with 'div' or 'dl'.
> Using $TS['conf.']['renderMethod'] = 'div' have no impact either.
> 
> 
> 
> 
> Then I was trying to use:
> 
> $this->cObj = t3lib_div::makeInstance('tslib_cObj');
> 
> $TS['conf'] = 'USER';
> $TS['conf.']['userFunc'] = 'tx_cssstyledcontent_pi1->render_textpic';
> $TS['conf.']['renderMethod'] = 'div';
> $TS['conf.']['text.']['10'] = 'TEXT';
> $TS['conf.']['text.']['10.']['value'] = $row['bodytext'];
> $TS['conf.']['textPos'] = 17;
> $TS['conf.']['imgList'] = $imgList;
> 
> $content = $this->cObj->cObjGetSingle($TS['conf'],$TS['conf.']);
> 
> but so far with no luck. No content is rendered at all.
> 
> 
> 
> I googled much but have not found an answer to seems like a simple 
> question:
> How to put images and text together using css_styled_content (div,dl) ?
> 
> 
> Thanks for any hints.
> 
> 

Solved. I get it with:

$TS['conf'] = ' < tt_content.textpic.20';
$TS['conf.']['text.']['20'] = 'TEXT ';
$TS['conf.']['text.']['20.']['value'] = $row['bodytext'];
$TS['conf.']['imgList'] = $imgList;
$TS['conf.']['imgList.'] = ' >';
$TS['conf.']['layout.']['key'] = 17;
$TS['conf.']['layout.']['key.'] = ' >';


-- 
grtz
Krystian Szymukowicz




More information about the TYPO3-dev mailing list