Thanks for a great module!
Sorry if this has been asked before.
It possible to compose a pager or an exposed filter, which makes it possible to quicly jump to a certain point in time quickly?

Comments

robotjox created an issue. See original summary.

jasonglisson’s picture

I'm looking for something similar to this. Any luck?

robotjox’s picture

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.

matthieuscarset’s picture

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.

matthieuscarset’s picture

Assigned: Unassigned » 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’s picture

Status: Active » Needs review
StatusFileSize
new110.9 KB

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.

matthieuscarset’s picture

Status: Needs review » Fixed

Marking as fixed. Closing the issue.

Feel free to reopen if needed.

matthieuscarset’s picture

Status: Fixed » Closed (fixed)
lexfunk’s picture

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....

glenshewchuck’s picture

Yea, I'm getting the same error. I've tried to save it with various settings but none worked. I didn't find this issue before and had created https://www.drupal.org/project/calendar_view/issues/3504625

liquidcms’s picture

Yes, duplicate issue, but this is closed and can't be re-opened, so your new one is likely best place to discuss this issue.