[TYPO3-calendar] Add custom field to the Frontend Edit

Lars Möller moeller at basis5.de
Fri Mar 2 09:11:00 CET 2012


hello max,

do you see the value in the confirm view?
try to search in the html source also (hidden input).
best
lars



Am 01.03.12 22:30, schrieb Max Plettenberg:
> Hello,
>
> so I tried the hole issue again.
> I used your TS Mario. Adding some data from the Backend is ok. It will 
> be shown in the frontend. Only Editing from the frontend isn't 
> working. You can write some data to the inbox field but after clicking 
> the save button the inbox field stays empty and no data will be shown 
> in the frontend.
>
> Greetz,
> Max
>
> Am 28.01.12 16:02, schrieb Mario Matzulla:
>> Hi Max,
>>
>> Am 28.01.12 13:45, schrieb Max Plettenberg:
>>> Hello Mario,
>>>
>>> I copied your TS and it wouldn't work... It is horrible. I also add the
>>> rights part. I think the problem is the way saving the data. I got the
>>> same problem another time before, but I don't know where the mistake 
>>> was
>>> the last time. I remember that the rights probably were a problem.
>>>
>>> Maybe you can help me on another way? TeamViewer or. Skype?
>>
>> I can give public support in this newsgroup for free, but not beyond
>> that. I do also offer direct support, but than for 50 euro / h. I hope
>> you understand my situation.
>>
>> Regards,
>> Mario
>>
>>>
>>> Regards,
>>> Max
>>>
>>> Am 28.01.12 13:10, schrieb Mario Matzulla:
>>>> Hi Max,
>>>>
>>>> I just tested the whole issue and I found a little mistake in your TS:
>>>>
>>>> plugin.tx_cal_controller.view {
>>>> create_event {
>>>> tx_calfelder_anzahlderpersonen_stdWrap {
>>>> dataWrap = <label>Anzahl der Personen</label><input type="text"
>>>> name="tx_cal_controller[tx_calfelder_anzahlderpersonen]" value="|" />
>>>> }
>>>> }
>>>> confirm_event.tx_calfelder_anzahlderpersonen_stdWrap.dataWrap = 
>>>> dataWrap
>>>> = <div><label for="tx_calfelder_anzahlderpersonen">Anzahl
>>>> Personen:</label>|<input type="hidden"
>>>> value="###TX_CALFELDER_ANZAHLDERPERSONEN_VALUE###"
>>>> name="tx_cal_controller[tx_calfelder_anzahlderpersonen]" /></div>
>>>> }
>>>>
>>>> This works here :)
>>>>
>>>> Regards,
>>>> Mario
>>>>
>>>> Am 27.01.12 23:54, schrieb Max Plettenberg:
>>>>> Am 25.01.12 20:08, schrieb Max Plettenberg:
>>>>>> Hi Mario,
>>>>>>
>>>>>> thanks for your help. I already add the rights part...:
>>>>>>
>>>>>> plugin.tx_cal_controller.view {
>>>>>> create_event {
>>>>>> tx_calfelder_anzahlderpersonen_stdWrap {
>>>>>> dataWrap = <label>Anzahl der Personen</label><input type="text"
>>>>>> name="tx_cal_controller[tx_calfelder_anzahlderpersonen]"
>>>>>> value="{GP:someGPvar}" />
>>>>>> }
>>>>>> }
>>>>>> confirm_event < create_event
>>>>>> }
>>>>>>
>>>>>> plugin.tx_cal_controller.rights {
>>>>>> create.event {
>>>>>> additionalFields = tx_calfelder_anzahlderpersonen
>>>>>> fields.tx_calfelder_anzahlderpersonen {
>>>>>> user =
>>>>>> group =
>>>>>> public = 1
>>>>>> default = 11
>>>>>> required = 1
>>>>>> }
>>>>>> }
>>>>>> }
>>>>>>
>>>>>>
>>>>>> When i activate the new field the hole event won't saved... the page
>>>>>> refresh and nothing is saved.
>>>>>>
>>>>>> Greetz,
>>>>>> Max
>>>>>>
>>>>>> Am 25.01.12 19:42, schrieb Mario Matzulla:
>>>>>>> Hi Max,
>>>>>>>
>>>>>>> Am 25.01.12 19:14, schrieb Max Plettenberg:
>>>>>>>> Hello!
>>>>>>>>
>>>>>>>> I tried to add a custom field with the Kickstarter. No problem. 
>>>>>>>> The
>>>>>>>> field is existing at the backend and it is no problem to save some
>>>>>>>> data.
>>>>>>>> Now I tried to get the field ready for the frontend edit... The
>>>>>>>> field is
>>>>>>>> visible there, but data won't be saved...
>>>>>>>>
>>>>>>>> There are two ways on TS but both doesn't work:
>>>>>>>>
>>>>>>>> First way:
>>>>>>>> dataWrap = <input type="text"
>>>>>>>> name="tx_cal_controller[tx_calfelder_anzahlderpersonen]"
>>>>>>>> value="{GP:someGPvar}" />
>>>>>>>>
>>>>>>>> Second way:
>>>>>>>> dataWrap = <input type="text"
>>>>>>>> name="tx_cal_controller[tx_calfelder_anzahlderpersonen]"
>>>>>>>> value="|" />
>>>>>>>>
>>>>>>>> Have someone a tip?
>>>>>>>
>>>>>>> you also have to add your field to
>>>>>>>
>>>>>>> rights.create.event.additionalFields = 
>>>>>>> tx_calfelder_anzahlderpersonen
>>>>>>>
>>>>>>> Regards,
>>>>>>> Mario
>>>>>>>>
>>>>>>>> Thanks a lot!
>>>>>>>>
>>>>>>>> Greetz,
>>>>>>>> Max
>>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>> So I tried it again and again... Write the TS new and nothing 
>>>>> changes.
>>>>> It's horrible... Could there be another problem?
>>>>>
>>>>> Someone who know something?
>>>>>
>>>>> I got headache....
>>>>>
>>>>> Hope,
>>>>> Max
>>>>
>>>
>>
>
> _______________________________________________
> TYPO3-project-calendar mailing list
> TYPO3-project-calendar at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-project-calendar

-- 
_____________________________

dipl.-ing. lars möller
basis5 - webtechnologie
möller und zipp ingenieure
und partner

pestalozzistrasse 9
34119 kassel

tel 0561.7660348
fax 0561.7660358

moeller at basis5.de
www.basis5.de
_____________________________

vertretungsberechtigte gesellschafter: lars möller, matthias zipp
registergericht: amtsgericht frankfurt am main registernummer: PR 1118
umsatzsteuer-identifikationsnr. gemäß §27a umsatzsteuergesetz: DE 219095185




More information about the TYPO3-project-calendar mailing list