Project

General

Profile

Feature #17659 ยป 0006473.patch

Administrator Admin, 2007-10-08 14:51

View differences:

typo3/sysext/css_styled_content/static/setup.txt (Arbeitskopie)
20 = USER
20.userFunc = tx_cssstyledcontent_pi1->render_bullets
20.field = bodytext
20.innerStdWrap.parseFunc = < lib.parseFunc
......
20 = USER
20.userFunc = tx_cssstyledcontent_pi1->render_table
20.field = bodytext
20.color {
default =
......
20 = USER
20.userFunc = tx_cssstyledcontent_pi1->render_uploads
20.field = media
20.color {
default =
typo3/sysext/css_styled_content/pi1/class.tx_cssstyledcontent_pi1.php (Arbeitskopie)
} else {
// Get bodytext field content, returning blank if empty:
$content = trim($this->cObj->data['bodytext']);
$field = (isset($conf['field']) && trim($conf['field']) ? trim($conf['field']) : 'bodytext');
$content = trim($this->cObj->data[$field]);
if (!strcmp($content,'')) return '';
// Split into single lines:
......
$this->pi_initPIflexForm();
// Get bodytext field content
$content = trim($this->cObj->data['bodytext']);
$field = (isset($conf['field']) && trim($conf['field']) ? trim($conf['field']) : 'bodytext');
$content = trim($this->cObj->data[$field]);
if (!strcmp($content,'')) return '';
// get flexform values
......
// Split into single lines (will become table-rows):
$rows = t3lib_div::trimExplode(chr(10),$content);
reset($rows);
// Find number of columns to render:
$cols = t3lib_div::intInRange($this->cObj->data['cols']?$this->cObj->data['cols']:count(explode($delimiter,current($rows))),0,100);
......
// Get the list of files (using stdWrap function since that is easiest)
$lConf = array();
$lConf['override.']['filelist.']['field'] = 'select_key';
$fileList = $this->cObj->stdWrap($this->cObj->data['media'],$lConf);
$field = (isset($conf['field']) && trim($conf['field']) ? trim($conf['field']) : 'media');
$fileList = $this->cObj->stdWrap($this->cObj->data[$field],$lConf);
// Explode into an array:
$fileArray = t3lib_div::trimExplode(',',$fileList,1);
    (1-1/1)