[TYPO3-project-formidable] template and textarea

Jerome Schneider j.schneider at ameos.com
Tue Mar 6 09:25:52 CET 2007


Hello Tim,
It's seems that someone (namely me:D) forgot to add the input channel on 
TEXTAREA


For quick patch, replace function _render() in 
ameos_formidable/api/base/rdt_textarea/api/class.tx_rdttextarea.php

by:



function _render() {
		
	$value = $this->_getValue();
	$label = $this->oForm->_getLLLabel($this->aElement["label"]);
	$value = $this->oForm->_getLLLabel($value);

	$value = htmlspecialchars($value);

	$sInput = "<textarea name=\"" . $this->_getElementHtmlName() . "\" 
id=\"" . $this->_getElementHtmlId() . "\"" . $this->_getAddInputParams() 
. ">" . $value . "</textarea>";
		
	return array(
		"__compiled" => $this->oForm->oRenderer->_displayLabel($label) . $sInput,
		"input" => $sInput,
		"label" => $label,
		"value" => $value,
	);
}



Sorry about that
It'll be patched in the upcoming version.


Regards,
Jerome Schneider


Tim Kleigrewe a écrit :
> hi list,
> 
> i found a problem using the renderlet TEXTAREA and a template file in
> v.06 an 0.7. there seems to be no {fieldname.input} output for
> textareas. (?)
> the .help channel is filled but without ".input" option.
> perhaps im doing something wrong, but without a template file everything
> works fine.
> 
> here the xml part:
> 
> ...
> <renderlet:TEXT name="title" label="Title*">
> 	<validators>
> 		<validator:STANDARD>
> 			<required message="Title is required" />
> 		</validator:STANDARD>
> 	</validators>
> </renderlet:TEXT>
> 		
> <renderlet:TEXTAREA name="description" label="Short description *">
> 	<validators>
> 		<validator:STANDARD>
> 			<required message="Description is required" />
> 		</validator:STANDARD>
> 	</validators>
> </renderlet:TEXTAREA>
> ...
> 
> 
> and the template part:
> 
> ...
> 
> <label for="{title.htmlid}">{title.label}</label>
> {title.input}{title.help}
> Works!		
> 
> <label for="{description.htmlid}">{description.label}</label>
> {description.input}{description.help}
> Input Works Not, the rest is ok!
> 
> ...
> 
> 
> thank you!
> 
> 
> tim


More information about the TYPO3-project-formidable mailing list