[TYPO3-calendar] problem with required fields

Josef Oberniedermaier josef.oberniedermaier at web.de
Wed Aug 10 21:27:46 CEST 2011


Hi Mario,


"Mario Matzulla"  schrieb im Newsbeitrag 
news:mailman.1.1312635693.28012.typo3-project-calendar at lists.typo3.org...

Hi Josef,

Am 05.08.11 23:58, schrieb Josef Oberniedermaier:
> Hi Mario,
>
> thanks.
> Sorry, I've made a little mistake. The startdate (not the starttime)
> should be set/shown as required.
>
> The *-symbol for the required field is missing in case 1.
> In case 2 the *-symbol is shown
>
> The links are quite different:
> - case 1: create event link inside the calendar-table:
> .../index.php?id=xyz&no_cache=1&tx_cal_controller[startdate]=20110806&tx_cal_controller[lastview]=view-month|page_id-167&tx_cal_controller[view]=create_event
>
> - case 2: create event link outside the table:
> .../index.php?id=xyz&no_cache=1&tx_cal_controller[gettime]=0700&tx_cal_controller[getdate]=20110805&tx_cal_controller[lastview]=view-month|page_id-167&tx_cal_controller[view]=create_event
>
> The time in case 2 is set to 0700 correctly, in case 1 it is set to 0000.
>
> What's the problem?

The links are from differnt places, rigtht? And I'm not sure, what
exactly "outside the table" is?? I guess that "inside the
calendar-table" means a day of the month view. And yes, than we don't
provide a time. BUT you can easily configure a default time for those cases:
rights.create.event.fields.starttime.default = now
or
rights.create.event.fields.starttime.default = 0700

Does that explain it?

Regards,
Mario



thanks for your answer. That does exlain it.

The starttime now is configured like you described. I works.

Sorry, I didn't mention the month view.
You're right. Inside the table means inside a day of the month view.
And that's my problem. In the month.tmpl there's the marker 
###CREATE_EVENT_LINK###.
Because of this at the bottom of the month view an additional icon for 
creating events is shown (I think this is new in cal 1.4.1 or I deleted it 
in cal 1.3.3?!).
The startdate is configured as required field (TS: 
rights.create.event.fields.startdate.required = 1).
When I'm clicking at this icon, the startdate is shown as required (signed 
with the *).
But when I'm clicking at the icon inside a day of the month view, it is not 
shown as required (The * is missing), although it is required.
When trying to save the new event without startdate, the * for the required 
field (startdate) appears.

Now my question: Why is the * not always shown when it is set to required=1?

Regards,

Josef

>
> Regards
>
> Josef
>
>
> "Mario Matzulla" schrieb im Newsbeitrag
> news:mailman.1.1312401822.12580.typo3-project-calendar at lists.typo3.org...
>
> Hi Josef,
>
> Am 26.07.11 23:34, schrieb Josef Oberniedermaier:
>> Hello
>>
>> after updating cal 1.3.3 to cal 1.4.1
>> i have a problem with fe-editing:
>>
>> when i click on the create-event-icon in the table, the starttime ist
>> set not required (although it should be).
>> when i click on the same icon at the bottom outside the table, the
>> starttime is set required correctly.
>> when editing the event it is also set required.
>>
>> Some ideas?
>
> Well, have a look at the links you are clicking at. If they contain a
> parameter tx_cal_controller[starttime] the value will be set (it might
> be set to 0000 -> 00:00 too!)
>
> Regards,
> Mario
>>
>> Kind regards
>>
>> Josef
>>
>>
>>
>>
> 



More information about the TYPO3-project-calendar mailing list