[TYPO3-project-formidable] majixReplaceData on renderlet:DATE

Martin Claus mc.laus at gmx.de
Thu Oct 16 10:07:04 CEST 2008


Hello List,

I am using formidable 2.0.248 and coming across a problem with  
renderlet:DATE. First of all this renderlet does not response to a  
defaultvalue. You have to use value instead. The second and more  
serious problem is that this renderlet does not act correctly if  
majixReplaceData() is called on it. So this example does not work:

<renderlet:DATE name="mydate">
	<data>
		<datetime format="The date is %m-%d-%Y %H:%M:%S" displaytime="true"/>
	</data>
</renderlet:DATE>
<renderlet:BUTTON name="changeDate">
	<onclick runat="ajax" cache="false">
		<userobj>
			<php><![CDATA[
				return $this->aORenderlets['mydate']->majixReplaceData(time());
			]]></php>
		</userobj>
	</onclick>
</renderlet:BUTTON>

It also doesn't work if you use date() and/or majixSetValue() instead.  
So IMHO there is no way of setting the date of a renderlet date by  
majix.

With kind regards,

Martin


More information about the TYPO3-project-formidable mailing list