Journal
Keeping Navigation Current with PHP
- Posted on: November 24, 2003
- In: CSS
- Comments closed
Good article on ALA abut consistent current navigation using php variables as page types. It’s one of those articles you read and go, “oh yeah” that makes sense.
It’s something that i’ve wrangled with for a while - how to get CSS down-states from just one php include. This shows you how.
Commenting is not available in this section entry.
Most recent entries
- Why have a chair when you could have a Sumo
- Design By Community
- Drupal.org
- Don’t screw with conventions
- Design isn’t about tools
- Where’s the D in D&AD?
- Coolspotters: Where people and products meet
- Alys Rose Boulton
- abcdefghijklmnopqrstuvwxyz
- From Poly to Pole
Categories
Search
Journal feeds
Books
Stuff I like
Powered by Expression Engine



I'm a graphic designer from near Cardiff in the UK. I've been a designer for over ten years now and primarily work on the web. I'm still partial to a bit of print every now and then though. I used to work for
Comments
Just a slight amendment.
I’ll be looking at using this technique when I roll out the other sections. Maybe this will allow me to use just one MT blog to control all the sections in this site. Ooooo - now theres a challenge.
Mark
Mon 24th Nov 2003
at 1:05 am
Just done this on this site. The navigation is now a php include with a bunch of logic statements which, depending on the page variable label, display a class of link which defines it as the “current tab”. Easy.
I’ve also externalised all the template files now into .tmpl files. This will allow me to simply use those templates for other sections within this site. The css is also externalised to a higher directory for use on the other blogs.
Mark
Wed 26th Nov 2003
at 2:29 am