• Resolved Katka Pavlí?ková

    (@katerinapavlickova)


    Is it somehow posible to show only a time between 2 dates? I’d like to have following:

    one shortcode printing May, second showin June, etc… Not to show whole calendar in one with arrows navigation.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author michielve

    (@michielve)

    Hi,

    This is possible by using the “validRange” FullCalendar property.

    Using a shortcode:

    [pgc default_view="dayGridMonth" valid_range-start="2020-04-01" valid_range-end="2020-05-01"]

    If you use the Gutenberg block first check the “Edit FullCalendar config” under “Calendar options”.

    Then you can do:

    {
      "header": {
        "left": "prev,next today",
        "center": "title",
        "right": "dayGridMonth,timeGridWeek,listWeek"
      },
      "validRange": {
        "start": "2020-04-01",
        "end": "2020-05-01"
      }
    }

    Best wishes,
    Michiel

    • This reply was modified 4 years, 7 months ago by michielve.

    I’d like to follow up on that question: Can I also show everything from today for the next four weeks?

    Thanks,
    Günther

    Plugin Author michielve

    (@michielve)

    It’s possible to show events from today for the next X days (not weeks).

    In the Gutenberg block and widget you edit the “hide passed events” and “hide future events”.

    In the widget you can do:

    [pgc hidepassed="true" hidefuture="30"]

    This will display all events from today for the next 30 days.

    • This reply was modified 4 years, 6 months ago by michielve.

    Thank you so much for your support – and also for this great plugin!
    I’m a little bit embarassed after finding out, that there’s a setting in the right panel doing exactly what I wanted. (But it only becomes visible after enabling “hide future events”, so I couldn’t see it at first.)

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘From-to display’ is closed to new replies.