All Low add-ons are now owned by EEHarbor. Read the blog post.

Support archive

multiple calendars

Paul 16 Aug 2012 11:01 question, complete

hi, is there a way to have multiple calendars i.e. starting with the current month and say the next 5 months?

thanks

Paul

Replies

  1. Low 16 Aug 2012 15:12

    What do you mean by 'calendars'? Multiple instances of the low_events:calendar tag? Then yes, that should be possible, if you feed it the correct dates.

  2. Paul 16 Aug 2012 16:49

    Yes, multiple instances of the low_events:calendar tag. Can this be done dynamically, so you always have 6 months showing?

  3. Low 17 Aug 2012 12:45

    You'll have to use PHP in your template to dynamically set the date to 6 months in the future, similar to this approach to the start_on parameter.

  4. David 17 Aug 2012 18:23

    Hi Low,

    First of all, thanks for this addon. I bought it a half hour ago and I already have a calendar up and running on the site I'm making. I've tackled this functionality before and it was always a messy business. You've made it easy.

    I have more or less the same request as Paul. I'd like to show three calendars: this month; next month and the following month on a single page on my site. I've included a screengrab from iCal by way of explanation as to what I'd like to achieve (if this month was May). Is this possible?

    thanks
    David

  5. Low 19 Aug 2012 10:04

    Hi David. This should also be possible with a bit of PHP on Input. Something like this:

    <?php 
    $month1 = date('Y-m');
    $month2 = date('Y-m', strtotime('+ 1 month'));
    $month3 = date('Y-m', strtotime('+ 2 months'));
    ?>


    Then use this as opening tags for your 3 low_events:calendar tags:

    {exp:low_events:calendar date="<?=$month1?>"} 
    {exp:low_events:calendar date="<?=$month2?>"}
    {exp:low_events:calendar date="<?=$month3?>"}

  6. David 19 Aug 2012 17:33

    Thanks Low! That worked a treat.

    David