[TYPO3-calendar] Re: FE Unable to Create Events

Hanspeter Lutz hanspeter.lutz at gmail.com
Wed Sep 30 21:31:14 CEST 2015


Quote: Hanspeter Lutz (pantarei) wrote on Wed, 30 September 2015 21:17
----------------------------------------------------
> Quote: Hanspeter Lutz (pantarei) wrote on Wed, 30 September 2015 20:58
> ----------------------------------------------------
> > Quote: Mario Matzulla wrote on Wed, 30 September 2015 20:28
> > ----------------------------------------------------
> > > Hi Hanspeter,
> > > 
> > > Am 30.09.15 um 17:18 schrieb Hanspeter Lutz:
> > > > Hi everybody
> > > > 
> > > > Since weeks I try to set up the frontend editting. I use cal 1.10.0. Does anybody out there has managed to set FE up and running?
> > > > 
> > > > My problem:
> > > > 
> > > > When I try to create an event (with the newest templates being used) the confirm view is always coming up again.
> > > 
> > > Are you sure?
> > > > 
> > > > When debugging the code, I see that the TS variable "tx_cal_controller.view.dontShowConfirmView" must be set to 1. Without this variable
> > > > been set, the method "saveEvent()" will never be called.
> > > > When I set the above mentioned variable, the call to saveEvent() is executed, but it crashes in the ModelController::saveEvent(), because
> > > > the parameter "type" (which comes from $conf['type'] is empty and the service cannot be found. I didn't find out where this type should come
> > > > from.
> > > > 
> > > > My questions:
> > > > 1) Why am I forced to set tx_cal_controller.view.dontShowConfirmView=1? I want the confirm view.
> > > > 2) Where does the $conf['type'] come from?
> > > 
> > > You need to make sure you have a marker ###TYPE### like this
> > > 
> > > <input type="hidden" value="###TYPE###" name="tx_cal_controller[type]" />
> > > 
> > > in the create_event.tmpl and confirm_event.tmpl
> > > 
> > > Regards,
> > > Mario
> > > > 
> > > > Any help would be greatly apreciated.
> > > > 
> > > > Kind regards
> > > > Hanspeter
> > ----------------------------------------------------
> > 
> > Hi Mario
> > 
> > In the default template there is already a line: "<input type="hidden" value="###TYPE###" name="tx_cal_controller[type]" />"
> > Or do you mean something else? Could you be more specific?
> > 
> > And why must the TS variable dontShowConfirmView always be 1?
> > 
> > Regards
> > Hanspeter
> > 
> >  
> > 
> ----------------------------------------------------
> I found out another fact:
> 
> The line "<input type="hidden" value="###TYPE###" name="tx_cal_controller[type]" />" in the template is correct and transmits the "type". But this is set to NULL for the view "create_event" in the method "checkView()". Why is this?
> 
> 
----------------------------------------------------
Problem solved!

The possibility to create, edit or delete must be enabled globally by:
tx_cal_controller.rights.rights {
		create = 1
		edit = 1
		delete = 1
}



More information about the TYPO3-project-calendar mailing list