[TYPO3-project-formidable] New SVN revision 163

Manuel Rego Casasnovas mrego at igalia.com
Fri Jan 11 11:11:32 CET 2008


>
> Hello,
>
> I've downloaded the last SVN revision and I've detected a new method
> "wrapForReadOnly", that is called always when a renderlet has "readonly"
> property.
>
> I think that this would be configurable, sometimes I need raw text that
> a renderlet:TEXT returns me.
>
> I've noticed that in my temlpate I use {myrenderlet.value}, I could get
> the raw text, however for backwards compatibility I'd prefer use
> {myrenderlet} and {myrenderlet.span} to wrap my renderlet "readonly"
> inside span tags.
>

A possible patch ({myrenderlet} and {myrenderlet.wrapped}:
Index: api/class.mainrenderlet.php
===================================================================
--- api/class.mainrenderlet.php (revisión: 163)
+++ api/class.mainrenderlet.php (copia de trabajo)
@@ -150,9 +150,10 @@

                        $mValue =
$this->oForm->oDataHandler->getThisFormData($this->_getName());
                        $mHtml = array(
-                               "__compiled" => $this->wrapForReadOnly(
-                                      
$this->_getHumanReadableValue($mValue)
-                               ),
+                               "__compiled" =>
$this->_getHumanReadableValue($mValue),
+                               "wrapped" => $this->wrapForReadOnly(
+                                       
$this->_getHumanReadableValue($mValue)
+                                ),
                                "additionalinputparams" =>
$this->_getAddInputParams($sId),
                                "value" => $mValue,
                                "value." => array(


Best regards,
   Rego

-- 
Manuel Rego Casasnovas
Computer Science Engineer
mailto:mrego at igalia.com
Tel: +34 986 10 76 10
Fax: +34 981 91 39 49
Igalia - http://www.igalia.com


More information about the TYPO3-project-formidable mailing list