|
View:
New views
2 Messages
—
Rating Filter:
Alert me
|
|
|
IMGTEXT and css_styled_contenthi 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. -- grtz Krystian Szymukowicz _______________________________________________ TYPO3-dev mailing list TYPO3-dev@... http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-dev |
|
|
Re: IMGTEXT and css_styled_contentKrystian 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 _______________________________________________ TYPO3-dev mailing list TYPO3-dev@... http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-dev |
| Free Forum Powered by Nabble | Forum Help |