[Typo3-dev] mail forms
Kasper Skårhøj
kasper at typo3.com
Mon Apr 19 21:12:57 CEST 2004
Both fixed.
Did the sorting slightly differently, using a function used everywhere
else where these arrays are sorted. You solution might have been
quicker. My solution is more similar to the rest of hte core.
Anyways, for the second request, the "label" type, I implemented it. I
also had to add support in the form wizard (otherwise the field type
would be unknown and stripped away) and finally I added proper
documentation to TSref for you.
Took ½-1 hour.
- kasper
On Wed, 2004-01-14 at 13:49, Martin Kutschker wrote:
> 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
>
>
> _______________________________________________
> Typo3-dev mailing list
> Typo3-dev at lists.netfielders.de
> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-dev
--
Best regards
- kasper
--------------------
It's not a bug, it's a missing feature.
More information about the TYPO3-dev
mailing list