Page Navigation Improvements

August 30, 2008 · Print This Article

I spent the last couple of hours making the breadcrumbs on top of most pages more useful. They’d always been there, but as a navigation tool there were pretty confusing, to be honest. Missing parents (the main blog page was never included!), confusing hierarchies (breadcrumbs for a download post didn’t lead to the Downloads page!) etc.
I’d never really dug into the plugin and wasn’t sure how much work this would be. Turns out that most changes were relatively easy because the plugin already supports them. I had to make some code modifications for others, though.

Anyway, breadcrumbs should be useful now. They lead back to the Blog page for all regular posts, and use the Videos and Download pages as parent when looking at a post that falls into either category. I also changed the game-related categories around so that their listings leads to the individual portfolio pages (which already contain a list all related topics).

The only remaining item on my list is better gallery navigation. All of my gallery entries are put in the “Misc Stuff” category by default, which is wrong (Know of a way to change the category in WordPress? Let me know! I don’t want to hack the database entries). And more importantly, I can’t figure out yet how to query the parent post of an attachment, so that I can add an automatic link to the parent post for each gallery entry. I regularly get direct visitors that find this or that image through Google and Yahoo! searches, and with no way to browse back to the parent post, those people don’t even know that the image they’re watching is part of a larger set. Gotta figure this out at some point…maybe my questions in the WordPress forums will yield an answer.

I’m getting a bit sidetracked by all this WordPress coding (it’s fun!), but I have plans for Quake editing as well for this long Labor Day weekend. More on that when I get to it.

Comments

 (Subscribe)

One Response to “Page Navigation Improvements”

  1. Page Navigation Improvements | Homepage: Matthias Worch on October 2nd, 2008 6:53 pm

    [...] A few weeks ago, I invested some time into making the breadcrumbs on top of every page a useful navigation tool to browse my page. That made matters much better – but when looking at image attachments, the trail was missing a link back to the parent post. Which made it a pain to go back to the actual post, and made it impossible for Google image searchers to refer to the post at all. Not anymore, though! I coded up something that includes the parent post in the breadcrumb trail: [...]

Got something to say?