Jump to month/year

Created on 27 April 2023, almost 2 years ago
Updated 27 June 2024, 9 months ago

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?

πŸ’¬ Support request
Status

Fixed

Version

2.0

Component

Documentation

Created by

πŸ‡©πŸ‡°Denmark robotjox

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

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

  • Status changed to Needs review 10 months ago
  • 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
  • πŸ‡ΊπŸ‡Έ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 .

Production build 0.71.5 2024