[Typo3-dev] mail forms

Martin Kutschker Martin.T.Kutschker at blackbox.net
Wed Jan 14 13:49:04 CET 2004


Hi!

A bug fix that makes the data array sorted correctly, ie 10,20,15 will be displayed as 10,15,20 (which is not true in 3.5). And new type "label", which is like a comment, but has a label just like a field.

class tslib_cObj() { 

...

function FORM($conf,$formData="") {

...

// use array number instead of simply appending
if (is_array($conf["dataArray."])) { // dataArray is supplied
...
$dataArr[intval($dAKey)] = implode("|",$temp);
}
}
}
ksort($dataArr,SORT_NUMERIC);

...

// a new type
case"label":
$fieldCode=nl2br(htmlspecialchars(trim($parts[2])));
break;

...

// formatting for the new type
if ($confData["type"]=="label" && $conf["LABEL."]["layout"]) {
$result = $conf["LABEL."]["layout"];
}

Masi






More information about the TYPO3-dev mailing list