[EventCalendar] Styling problem on archive pages
Alex Tingle
alex at firetree.net
Sun Oct 8 20:02:29 UTC 2006
Hi John,
On Sun, 8 Oct 2006 20:37:12 +0100
John Yeates <eventcalendar at westernsussexcamra.org.uk> wrote:
> Slight niggle with the archive pages in 3.1._pre15 and earlier _ the
> event date is showing as plain text in square brackets, rather than
> the nicely-formatted red box that comes up on other pages.
>
> As an example, see http://www.westernsussexcamra.org.uk/?
> m=20061017&cat=2 versus http://www.westernsussexcamra.org.uk/archives/
> 134_social-stags-head-cricketers-westbourne/
>
> Not sure if this is by design or not. I removed the parameters from
> the call to ec3_get_schedule() in line 495 of eventcalendar3.php (in
> ec3_get_the_excerpt) which has done the trick. It doesn't *seem* to
> break anything, but two minutes of fiddling does not constitute a
> rigorous test programme :)
the_excerpt() is used to generate the text for RSS feeds and such. So if
you want to look for breakages, start with a feed reader. I don't think
it will like the embedded HTML that you're feeding it.
Better to change your template to call the_excerpt() rather than
the_content() on archive pages. It's probably in archive.php. That's
what I've done. That's the way the default template is.
-Alex
--
:: Let me solve your problems: http://www.firetree.net/consulting/
:: alex.tingle AT firetree.net +44-7901-552763
More information about the EventCalendar
mailing list