1

I am using {event_start_date format="%M %j"} to get the format eg Sep 19

But in some cases it is outputting the month as "month_09_3" if the URl segments match the date of that event.

My code is below:

        {exp:calendar:cal
                date_range_start="{segment_3}-{segment_4}-{segment_5}"
                show_months="10"
                pad_short_weeks="n"
                {if segment_2 !="all"}calendar_name="{segment_2}"{/if}
        }
        {events}  
            <tr>
                <td><strong>{event_start_date format="%M %j"} {if event_multi_day}- {event_end_date format="%M %j"}{/if}</strong></td> 
                <td>{event_title}</td>
                <td>{event_calendar_title}</td>
            </tr>
        {/events}
            {if no_results}
            <tr>
                <td colspan="3">
                    There are currently no events to display.
                </td>
            </tr>{/if}


        {/exp:calendar:cal}

The url example would be http://www.domain.com/new-calendar/culture/2013/09/19/ segment 2 being the calendar_name.

Thanks

6
  • What version of Calendar are you using? What version of EE are you using?
    – Solspace
    Sep 16, 2013 at 18:21
  • Hi, EE v2.5.2 and Calendar 1.8.5, I was using 1.8.4 but updated to see if it would fix it.
    – Mark
    Sep 16, 2013 at 19:00
  • 1
    Is it me, or do you have a missing {/if} for {if no_results}?
    – Solspace
    Sep 16, 2013 at 19:04
  • Soz that's just a mistake in this snippet. Not on the website.
    – Mark
    Sep 17, 2013 at 5:51
  • I can't reproduce this on my side. Have you tested the above code on a completely, absolutely blank EE template with nothing whatsoever on it besides the code? You might need to contact us directly at support.solspace.com with CP/FTP credentials so we can have a look. Thanks!
    – Solspace
    Sep 17, 2013 at 22:38

1 Answer 1

1

Pretty sure you should be able to use multiple calendars on one page but in this case it didn't work so embedded each calendar in templates to solve.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.