aclertant VIP
Total posts: 14
08 Jun 2016 14:00

I tried to use the calendar pack but when I enter or modify a date or hours in a record (using the input below both calendars), a year is automaticaly added. Plus you need to jump to the other input to validate/un-focus the one just modified :(

Capture d’écran 2016-06-08 à 16.04.18

I need to adjust the time as well, so is there a template (for form) that use the same kind of multiple_dates_picker.php (because it ask for the time nicely) but wich fill the gap between two chosen date ?

Thanks

Last Modified: 12 Jun 2016


pepperstreet VIP
Total posts: 3,837
08 Jun 2016 15:58

Hello aclertant, can't see your picture/screenshots.


aclertant VIP
Total posts: 14
08 Jun 2016 16:03

Capture


pepperstreet VIP
Total posts: 3,837
08 Jun 2016 16:15

Thanks for the new image.
Not sure I got your issue. Can you explain your steps again, please?
What's happing when, or What does not work as expected.


aclertant VIP
Total posts: 14
08 Jun 2016 16:26

When I want to edit the date range (and the time by using the two input) like on the screenshot. It's registered with +1 year. ex.: if I edit a record for june 2016 it will be automaticaly registered untill june 2017.

This append especially when editing the input. But to set a proper time I have to do.

May be you can try on my website you will understand immediately ;o) In front end, in intranet->agenda try to change this record "Journées JCAT à Anglet " from 14 june 2016 to 19 june 2016.

Thanks


pepperstreet VIP
Total posts: 3,837
08 Jun 2016 17:57

Hello aclertant,
I did some quick tests on my own test installation. Unfortunately the "Date-Range" picker is a special input to quickly insert a range with 2-clicks. It is for Dates only. It does not allow time inputs: Neither interactive, nor through the input-fields at the bottom. As far as I know, the inputs do not accept any edits, at least they do not alter and store anything. I guess, it is a display and info-area to see the picked start and end values.

cob_field_datetime_range_no_time_allowed


Idea / Some thoughts

I think you have to use a different input template, and use 2 separate fields. One for start- and another one for end-date.
Also check the useful "Override Settings", where you can alter the core dates of the record.
Maybe setting some "defaults" is helpful for a faster input, too.

Hope this helps.


aclertant VIP
Total posts: 14
08 Jun 2016 18:18

ok thank's ;o)

It's good to know.

If I add a second date and time field in my type. Will it be automaticaly scalled to my calendar pack ?

Thanks again for your response !


pepperstreet VIP
Total posts: 3,837
08 Jun 2016 23:10

aclertant If I add a second date and time field in my type. Will it be automaticaly scalled to my calendar pack ?

Sorry, I was totally wrong with my first assumption. I did not remember the Events-Pack template settings and type setup. Obviously it requires 1 Date field, which stores multiple values! Hence the template parameters, where you set the Date source. It is always 1 field. So, you can't set the range with two separate fields.

BTW, the Multiple-Dates input template allows to select a time, but you can also add more than 2 dates... there is no restriction and no real guidance for the user. The events list displayed the dates, but the calendar template did not... totally empty. :(

Conclusion:
Most likely you need another workaround or special input template...


Hopefully, Cobalt 9 provides something like this ;)


aclertant VIP
Total posts: 14
09 Jun 2016 09:00

hello Pepperstreet,

Thanks for your great help ;)

The cobalt 9 date range is exactly what I need :p Do you think it is easy to integrate as a template form (in a new range_date_picker.php) ?

Else when the cobalt 9 will be released ? and could I upgrade my website and keeping all the settings/records ?

Thank's a lot anyway, you provide me a good support ! greatly appreciated :o)


pepperstreet VIP
Total posts: 3,837
10 Jun 2016 12:41

aclertant Else when the cobalt 9 will be released ? and could I upgrade my website and keeping all the settings/records ?

It is in progress, but delayed. First is Emerald 10.

aclertant The cobalt 9 date range is exactly what I need :p

That was an example only. Sure, it is one of the most feature-rich pickers I know of, but it might have dependencies on Bootstrap v3, too. But I don't know for sure. If it is a matter of styling, then it might get on the shortlist ;)
It might make sense to find a solution without too much framework dependiencies...:
- xdsoft datetime picker + period picker
- jszen.com jQuery DateRangePicker
- Jon Thornton's DatePair.js to link single inputs

I've no detailed infos about the final replacement in Cobalt 9. Currently, it's just my guesswork.
I've heard, it might result in a new field, if there are any incompatibilities and differences.

Do you think it is easy to integrate as a template form (in a new range_date_picker.php) ?

Should be very similar to the existing one. But I am not sure about the best and final integration i.e. where to place the main script and folders etc. Also filters have to be changed etc.


Probably the simple_select could be modified to provide and store 2 values, too. Without to much hassle and CSS/JS bloat...?!


Sergey
Total posts: 13,748
12 Jun 2016 10:26

Unfortunately current date selector script technicaly doe not allow to enter time on range selection.

Powered by Cobalt