[TYPO3-english] extbase / fluid - date question

S.Korth s.korth at dms-arts.com
Wed Dec 30 21:13:36 CET 2009


Hey Jigal,

thanks for your answer. Next time i use the other group.
I already build some templates for edit, new and index. As you said
fluid/extbase build all values by using the object or in a form by using 
  property.

But my problem is that my values are empty. But just the "dateFrom" 
input value. Everything else works fine. The dateForm is a "datetime" 
object.

Any Idea ? Thanks so far.



Jigal van Hemert schrieb:
> S.Korth wrote:
>> i just test the example blog ext. to start with extbase and fluid.
>> After changing alot of thing and playing around some time i get at 
>> least one problem.
> 
> It's best to post extbase and fluid questions in typo3.projects.typo3v4mvc
> Your questions are also read (and often answered) by the authors of 
> those extensions.
> 
>> In my Template i use a form and i want to add a date field:
>>
>> <label for="dateFrom">Date From</label><br />
>> <f:form.textbox property="dateFrom" /><br />
>>
>> Thats all so far. I can input a date and save it. Everything is fine.
>> But i can't display the value ?!? I can display the value like this
>> <f:format.date>{news.dateFrom}</f:format.date>, but i need also the 
>> value inside the textbox.
>>
>> Anyone knows how ?       
> 
> AFAIK you need two templates. To create new records you can use a form 
> tag such as:
>     <f:form method="post" controller="Contact" action="create" 
> name="newContact" object="{newContact}" arguments="{contact : contact}">
> and for the edit template a form tag similar to:
>     <f:form method="post" controller="Contact" action="update" 
> name="contact" object="{contact}" arguments="{contact : contact}" >
> 
> The input field tags are similar in both templates, but extbase/fluid 
> will add the current value to the edit template fields.
> 
> Regards, Jigal.


More information about the TYPO3-english mailing list