Viewing Current month on Events plugin

Discussion in 'Subrion CMS Plugins Discussion' started by dragon2015, Nov 7, 2015.

  1. dragon2015

    dragon2015 New Member

    Hi, sorry for asking yet another question, however if I don't ask I don't know!!, is there any way to make the events calendar display the current month without a user having to click through the years etc that are displayed as standard ??

    Many Thanks

    Screen Shot 2015-11-07 at 09.44.25.png Screen Shot 2015-11-07 at 09.46.30.png
  2. Andrew_G.

    Andrew_G. Staff Member

    Hello @dragon2015 ,

    In order to change the starting view date for the Events Calendar block you need to:
    1) copy the file from ../plugins/events/templates/front/ folder to ../templates/YOUR_CURRENT_TEMPLATE/plugins/events/ folder
    2) open just copied ../templates/YOUR_CURRENT_TEMPLATE/plugins/events/ file and replace the following line of code:
    <div id="event-calendar" data-date="{$|date_format:'%Y-%m-%d'}" data-date-format="yyyy-mm-dd"></div>
    with this line of code:
    <div id="event-calendar" data-date="{$|date_format:'%Y-%m-%d'}" data-date-start-view="0" data-date-format="yyyy-mm-dd"></div>
    Save changes.

    Here you are!

    You can get more information about Bootstrap datepicker options here:

    Thanks for your interest in our software products!
    Dayir_A. likes this.
  3. dragon2015

    dragon2015 New Member

    Hi again, I'm not sure why but for some reason future events show in the future events tab however no events will show highlighted on the calendar itself?? and when clicked the individual dates they always show no events on this date???? Any ideas what I'm getting wrong here please?? many thanks is the site

Share This Page