Implementation of coming-week events list

19/04/11

Permalink 11:00:05 am, by mholmes, 232 words, 182 views   English (CA)
Categories: Activity log; Mins. worked: 90

Implementation of coming-week events list

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.

Pingbacks:

No Pingbacks for this post yet...

Update of Humanities Sites

This blog is for work done creating and major updating of departmental and similar sites. Routine text edits etc. are logged in the Depts blog.

Reports

Categories

May 2013
Sun Mon Tue Wed Thu Fri Sat
 << <   > >>
      1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31  

XML Feeds