[TYPO3-project-formidable] Listbox disabled - with diff
Christof Rodejohann
christof at rodejohann.de
Sat Dec 20 23:21:39 CET 2008
Hello,
i would like to suggest a possible switch to disable a Listbox
renderlet (The HTML option "disable = true".). If you decide that this
would be a good idea: Here is a diff against the latest SVN version
287:
+++ ..\formidable\api\base\rdt_listbox\api\class.tx_rdtlistbox.php Sa
Dez 20 23:12:47 2008
@@ -29,6 +29,11 @@
}
}
+ $sDisabled = "";
+ if($this->_defaultFalse("/disabled") === TRUE) {
+ $sDisabled = "disabled=\"true\" ";
+ }
+
$aSelectedCaptions = array();
$bSelected = FALSE;
@@ -64,7 +69,7 @@
$sClass = $this->_getClass($aItem);
$sStyle = $this->_getStyle($aItem);
- $aHtml[] = "<option value=\"" . $aItem["value"] . "\" " .
$sSelected . $sClass . $sStyle . $sCustom . ">" . $sCaption .
"</option>";
+ $aHtml[] = "<option value=\"" . $aItem["value"] . "\" " .
$sSelected . $sDisabled . $sClass . $sStyle . $sCustom . ">" .
$sCaption . "</option>";
}
reset($aHtml);
Regards,
Christof
More information about the TYPO3-project-formidable
mailing list