Well, after what was probably the busiest and toughest year of my career I’ve now emigrated, and left the BBC. As a result I have a bit of spare time, and more importantly inclination to work on my pet project - so Dinqi is going to get some much needed love.
This morning I’ve added simple ‘next’ and ‘previous’ pagination to the main view events page, meaning you can finally go back and view beyond 20 events.
The pagination is available to both the HTML and RSS views and works for any set of data (e.g. just films, films and books, everything etc.).
There’s also a shortcut value of “all” for the “numofitems” value (and a corresponding button in the HTML view), in case anyone wants to do away with pagination completely. Thus if a user wanted to get an XML copy of all the event data they’ve put into Dinqi for example, just add “?numofitems=all” to the all entries RSS view.
A note about the URLs - this pagination is the first time I’ve used query strings to Dinqi. Up to now everything has been done via the directory structure (well, at least as far as the user sees - thank you .htaccess). However there’s a good reason for this:
I spent a while thinking about how I could convey what was being shown in an elegant way alongside the username(s), event type(s) etc. that were already in use in the URL. Eventually I realised I was having difficulty because up to now all the cuts I’d enabled had been based on the attributes of the data itself - event type, user name, qualifiers etc. Pagination is more arbitrary, just showing whatever part of that full data set the user / view has chosen - thus it makes sense not to mix the two things together, and to leave pagination to the query string to deal with.
My main reason for doing this is to draw a little bit more attention to the site and, while I’m not really looking for feature requests right now (I have a massive list of things I want to do already) I’d love to draw in a few bug reports (emails, comments, tweets, however suits you) to embarrass me into working on it so… Off you go!]]>
A few minor new things of note:
Next step is to finish setting up the default entry types then I think it’ll be ready for beta - hooray!]]>
This is the Dinqi blog, where I’ll be posting news about updates made to the site.
The big news for the opening post is the obvious: I’ve picked a name at last - welcome to Dinqi! Not much of a rationale there, maybe dinky / microblogging, but mainly it’s 5 letters and easy to remember. As Nik said: “It’s no more stupid than some”.
Having a name also allowed me to sort out the hosting. Richard recommended Dreamhost who so far seem excellent: Sub-domains, SVN and a blog all set up relatively painlessly via a web interface. Very nice.]]>