Answers.Body: <p>Posting comment as answer, since the suggested solution solved it:</p>
  
  <p>Pass the IDs as an array instead of comma separated: <code>{% set thisCalendar = [3,2] %}</code></p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-08-25T10:28:38.950Z
Answers.LastActivityDate: 2015-08-25T10:28:38.950Z
Answers.UserDisplayName: megatrond
Body: <p>I am using Michael Rog's Calendar add-on with these params:</p>
  
  <pre><code>{% switch craft.request.getSegment(2) %}
      {% case '' %}
          {% set thisCalendar  = '2,3' %}
          {% set calendarTitle = 'Full Calendar' %}
      {% case 'mts' %}
          {% set thisCalendar  = '2' %}
          {% set calendarTitle = 'MTS Calendar' %}
      {% case 'day-school' %}
          {% set thisCalendar  = '3' %}
          {% set calendarTitle = 'Day School Calendar' %}
  {% endswitch %}
  
  {% set calendarParams = {
      dateRangeStart: 'today',
      dateRangeEnd: '+36 months',
      calendarId: thisCalendar
      } %}
  </code></pre>
  
  <p>The individual calendars are working and showing the correct entries but without a segment 2 I am only getting the events from Calendar ID 2 but not from ID 3.</p>
  
  <p>If I do this:</p>
  
  <pre><code>    {% case '' %}
          {% set thisCalendar  = '3,2' %}
  </code></pre>
  
  <p>I get events from Calendar ID 3 but not from ID 2.</p>
  
  <p>How do I get events from all calendars? Is comma separated the correct syntax? Should this be working?</p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-08-25T07:24:58.447Z
Comments.Text: Have you tried passing an array instead? Like so: `{% set thisCalendar  = [3,2] %}`
Comments.UserDisplayName: megatrond
Tags: <calendar>
Title: How to show multiple calendars
ThreadText: # How to show multiple calendars
  
  (Asked by: username_0 on 2015-08-24)
  
  I am using Michael Rog's Calendar add-on with these params:
  
  ```
  {% switch craft.request.getSegment(2) %}
      {% case '' %}
          {% set thisCalendar  = '2,3' %}
          {% set calendarTitle = 'Full Calendar' %}
      {% case 'mts' %}
          {% set thisCalendar  = '2' %}
          {% set calendarTitle = 'MTS Calendar' %}
      {% case 'day-school' %}
          {% set thisCalendar  = '3' %}
          {% set calendarTitle = 'Day School Calendar' %}
  {% endswitch %}
  
  {% set calendarParams = {
      dateRangeStart: 'today',
      dateRangeEnd: '+36 months',
      calendarId: thisCalendar
      } %}
  
  ```
  
  The individual calendars are working and showing the correct entries but without a segment 2 I am only getting the events from Calendar ID 2 but not from ID 3.
  
  If I do this:
  
  ```
      {% case '' %}
          {% set thisCalendar  = '3,2' %}
  
  ```
  
  I get events from Calendar ID 3 but not from ID 2.
  
  How do I get events from all calendars? Is comma separated the correct syntax? Should this be working?
  
  **Tags:** calendar
  
  > **Comments:**
  > **username_1**: Have you tried passing an array instead? Like so: `{% set thisCalendar  = [3,2] %}`  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2015-08-25. Score: 1 | Accepted answer
  
  Posting comment as answer, since the suggested solution solved it:
  
  Pass the IDs as an array instead of comma separated: `{% set thisCalendar = [3,2] %}`
  
  
  ---
  
  