Note: In cleaning up the webserver lately, I’ve removed some of the stuff that is linked to here, so you may find it irritating. Sorry about that.
When asked to create a webpage that will be hosted on a rather primitive webserver, I decided to give the Feed2JS tool created by Alan Levine a real-world whirl. The original thought was to use WordPress as the backend, and utilize the per-category feed capability of WordPress to generate content for various sections of the page. While this would undoubtedly be simpler (and faster) if I could just access the wordpress database directly, having the site hosted on a bare-bones server was not negotiable.
Just so you know, I am updating the old iTeacherEd site at the University of Regina, which will be overwritten with the new (development) version fairly shortly.
In order to create a self-updating “recent announcements” section on the front page of the site, I opted to use the proposed WordPress backend. Installing WordPress took all of 5 minutes, and then it was just a matter of creating an “Announcements” category and writing the appropriate posts. You might want to check out the invisible powering blog to see what I mean. The difficulty was that I didn’t want the post to appear in the default manner set by Feed2JS, which automatically links the title of the post to the blog entry and strips out any links within the content of the post. The difficulty I encountered can be seen by looking at:
Original output of Feed2JS
After mucking about with the php code in both Feed2JS and the Magpie engine, I was able to get it to render as I wanted: (this is my hacked version of Feed2JS, created only for this use, and it will not work for much else)
Modified output of Feed2JS
Styling the output with CSS, the recent announcements now appear in the main page seamlessly Nice.
I was originally going to use WordPress to power the hefty number of links that I had to create in the Resources section of the page. However, I discovered that Spurl.net has a Javascript export feature on a per-category basis as well. The two difficulties with using this method is that you cannot have links in the description, and I haven’t found a decent means to order the entries manually (it sorts them automatically with the most recent link being on the top).
You can see this part of the page in action in the resource section.
Lots of work to do yet, but I think it is coming along fairly well.