This should be straightforward. I just need to take my event summary from the Solspace Calendar plugin and truncate it to say 280 characters. I have PHP set to "Yes", and "Output" parsing stage. It is breaking and not rendering the template. I'm assuming it's because I'm using it in a variable pair. Below is the template:
{exp:calendar:cal calendar_id="214" date_range_start="-2 weeks" date_range_end="+5 weeks"}
{events}
<div class="eventPopup" data-date="{event_start_date format="%Y-%m-%d"}">
<div class="eventPopupHeader">
{event_start_date format="%F %j, %Y"}
</div>
<div class="closeButton"><a href="javascript:void(0)"><img src="{siteroot}images/uploads/main/closeButton.png" width="30" height="30" alt="close button"></a></div>
<div style="clear:both"></div>
<div class="subnavContent">
{if event_pic != ""}<img src="{event_pic}" width="246" height="166" alt="menu pic"><div style="clear:both"></div>{/if}
<h3><a href="/haa/event/{entry_id}">{event_title}</a></h3><p>{event_location} - <?php echo substr("{event_summary}", 0, 280); ?></p>
</div>
</div>
{/events}
{/exp:calendar:cal}
p
tag, or a WSOD, 404 or something else? Can you supply examples of the{event_summary}
so we can identify any formatting issues? does it all work with out the php substr?? Lastly, is events a matrix/grid??