Implementation of coming-week events list
Posted by mholmes on 19 Apr 2011 in Activity log
I've now implemented the plans described in this previous post, as follows:
- The
rssReaderManyDepts.php
file has been modified in a couple of places, to add an optional parameter (default value "true") called$includeDesc
, which is used to control whether or not the Description field is included when the full event detail is written out. This doesn't change any other behaviour elsewhere on the site, but enables me to suppress the description information when I need to. - A new page (aboutus/eventsWeek.php) has been created. This instantiates a special instance of the
rssReader
class, which is set to retrieve events for only 8 days. This class then writes out the events twice, once in short form (for copy-pasting into the email) and once in long form (so that the speaker information can be retrieved and copy-pasted into the email too, where appropriate). - The new page does not include the normal right-column listings, because its special version of the RSS reader wouldn't be able to provide them, since it's only retrieving 8 days of material. However, this is not a page intended for the public anyway, so it doesn't really matter whether it's complete or not.
- This special reader uses its own cache file, so as not to step on the toes of the other two instances of readers used on the site.
I've emailed BLT to let him know about the new page.