[TYPO3-english] Problem with RTE Frontend
Tomas Norre Mikkelsen
tomasnorre at gmail.com
Thu Jul 1 09:07:00 CEST 2010
Hi,
I have a problem with my rtehtmlarea in my frontend plugin, i have tried the
setup like
http://typo3.org/documentation/document-library/extension-manuals/rtehtmlarea/1.4.4/view/6/2/but
no luck..
The $dataArray['my-field-name'] variable is simple empty, so nothing added
to the db, and when enter text backend, its not loaded frontend when
editing..
I have tried various ways to set my $dataArray['my-field-name']
Manual says:
$dataArray['my-field-name'] =
$this->RTEObj->transformContent('db',$dataArray['my-field-name'],
'my-table-name', 'my-field-name', $dataArray, $this->specConf,
$this->thisConfig, '', $this->thePidValue);
I have tried:
1: $dataArray['bodytext'] =
$this->RTEObj->transformContent('db',$dataArray[$this->prefixId.'[bodytext]'],
'tt_news', $this->prefixId.'[bodytext]', $dataArray, $this->specConf,
$this->thisConfig, '', $this->thePidValue);
2: $dataArray['bodytext'] =
$this->RTEObj->transformContent('db',$dataArray[$this->prefixId.'[bodytext]'],
'tt_news', 'bodytext', $dataArray, $this->specConf, $this->thisConfig, '',
$this->thePidValue);
3: $dataArray['bodytext'] =
$this->RTEObj->transformContent('db',$dataArray[bodytext], 'tt_news',
'bodytext', $dataArray, $this->specConf, $this->thisConfig, '',
$this->thePidValue);
The manual shows is like parameter 2 and 4 should be alike, but as far as i
can see it should not because the 2. parameter refers to the form name for
the input-field, and 4. refers to the db-column name.
Any hints on how to set this correctly ?? The example 2 is the one im most
sure about.. but doesnt work..
--
Venlig Hilsen / Best Regards
Tomas Norre Mikkelsen
tomasnorre at gmail.com
More information about the TYPO3-english
mailing list