[TYPO3-formidable] Feature wish: Do not include default CSS
Hauke Hain
newgrp at googlemail.com
Mon Jun 14 18:08:13 CEST 2010
Hi there,
hi Jérôme,
the mainrenderer of the standard renderlet always adds the default CSS like
ext/ameos_formidable/api/base/rdr_std/res/css/style.css
As I do not need this stylesheet I would like to have a function like
<accessibility useJS="false"/>
just for the default CSS.
Here the code snipped where it is added:
class tx_rdrstd extends formidable_mainrenderer
function _render($aRendered) {
//$aRendered = $this->displayOnlyIfJs($aRendered);
$this->oForm->_debug($aRendered, "RENDERER STANDARD - rendered elements
array");
$sForm = $this->_collate($aRendered);
if(!$this->oForm->oDataHandler->_allIsValid()) {
$sValidationErrors = "<div class='errors'><div class='error'>" .
implode("</div><div class='error'>",
$this->oForm->_aValidationErrorsByHtmlId) . "</div></div><hr
class='separator' />";
}
$this->oForm->additionalHeaderData(
"<link href=\"" . $this->sExtWebPath . "res/css/style.css\"
type=\"text/css\" rel=\"stylesheet\" />",
"formidable-rdrstd-style.css"
);
return $this->_wrapIntoForm($sValidationErrors . $sForm);
}
Regards,
Hauke
More information about the TYPO3-project-formidable
mailing list