- Issue created by @robotjox
- πΊπΈUnited States jasonglisson
I'm looking for something similar to this. Any luck?
- π©π°Denmark robotjox
Sadly no, but it should be possible with a custom dropdown menu and some javascript that sends the user to an url when a month/year is picked.
It should then translate the picked date to a timestamp and send the user to url arguments that calendar view understands, like "calendar_timestamp=1675206000"I made something similar for the fullcalendar module, but I donΒ΄t have the time now.
It is possible already i did not documented it yet, sorry.
You can try to use
calendar_timestamp=tomorrow
or any date/time you want in the url already and it will set the calendar to this timestamp.Thank you for this request.
I will document this feature asap.
- Assigned to matthieuscarset
I suggest to implement a new filter: Jump to where users will be able to type any given valid date - as per the PHP Datetime formats - which will be used for the
calendar_timestamp=
query string parameter's value.Working on this issue.
-
matthieuscarset β
committed e0f8fa57 on 2.1.x
feat: Add new calendar_view_timestamp filter #3356959
-
matthieuscarset β
committed e0f8fa57 on 2.1.x
- Status changed to Needs review
10 months ago 7:40pm 1 May 2024 A new filter is available on dev branch
2.1.x
: the "Jump to" filter.You can see it in action on this page: https://www.drucal.org/ (see attached screenshot too).
Please review and let me know.
Marking as fixed. Closing the issue.
Feel free to reopen if needed.
- Status changed to Fixed
10 months ago 1:31pm 13 May 2024 - πΊπΈUnited States lexfunk
When adding the "Jump to" filter to my view, I am unable to save the view with the following error:
InvalidArgumentException: The configuration property display.monthly_calendar.display_options.filters.calendar_timestamp.value.min doesn't exist. in Drupal\Core\Config\Schema\ArrayElement->get() (line 76 of /var/www/html/web/core/lib/Drupal/Core/Config/Schema/ArrayElement.php).
I should note that I did not expose the filter and I set the default to "now". I was attempting to use this field to ensure users stay on same month/week after exposed filtering, as you mentioned this might be a workaround in https://www.drupal.org/project/calendar_view/issues/3403103#comment-1559... π¬ Stay on same month/week after exposed filtering Needs review .