[EventCalendar] RE: insert a default paragraph in a post when no event data is set

Mark Naylor MarkNaylor at signet-solutions.com
Wed Nov 15 13:43:30 UTC 2006


Ok Alex sorted it,
First I had to put all events including those not programmed, into their
own category, and NOT the events category as required by event calendar,
because some of these events do not have a programmed date.
 
During the call for posts in the loop, i checked to see what category
the post was in, and if in this category it printed "My text"
 
<?php if (in_category(32)) { ?>
My text
<? } ?>

And, during the call for the event calendar schedule in
template-functions.php, I added html elememts to the wrapper to print
"Next Dates" above the date range
 
define('EC3_DEFAULT_FORMAT_WRAPPER','<div class="nexdate"><h2>Next
Date(s)</h2></div><table class="ec3_schedule">%s</table>');
 
I'm sure that this could be done MUCH neater, but, it works for me.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://penguin.firetree.net/pipermail/eventcalendar/attachments/20061115/127ba22f/attachment.html


More information about the EventCalendar mailing list