Need someone to lead product management at your software company? I create software for people that create software and I'm looking for my next opportunity. Check out my resume and get in touch.

This is the blog of Adam Kalsey. Unusual depth and complexity. Rich, full body with a hint of nutty earthiness.

Content Management

Breadcrumbs in Movable Type

Freshness Warning
This blog post is over 20 years old. It's possible that the information you read below isn't current and the links no longer work.

P. Obels asked

How do you get the links on top of your site in movabletype which point out where you are?

like:

Home » Our Thinking » Measure Twice » Archive » Tools and Utilities

Since he’s not the first person who’s asked, and I’m getting tired of re-writing the answer, I’m blogging it so I can simply point people here.

The short answer is: manually.

Each MT template has the breadcrumbs manually defined. The only variable part of the breadcrumb is (in most templates) the last item in the list. So my archive template that creates both category and monthly archives has this in it:

<p class="breadcrumb"><a href="/">Home</a> » <a href="/thinking/">Our Thinking</a> » <a href="/blog/">Measure Twice</a> » <a href="/blog/archives/">Archive</a> » <MTArchiveTitle></p>

And the individual archive template contains

<p class="breadcrumb"><a href="/">Home</a> » <a href="/thinking/">Our Thinking</a> » <a href="/blog/">Measure Twice</a> » <MTEntryTitle></p>

Comments

Paulo
May 5, 2004 12:28 PM

For my breadcrumbs I pass a "$crumbs" array into my PHP templating class and parse it out with a breadcrumbs() method. It took me about a day of sporadic head-banging to realize that some individudal archive pages were giving errors because they had apostrophes in their titles and I had forgotten to use <$MTEntryTitle encode_php="q"$>

Bas
May 5, 2004 12:37 PM

How about, for a category or a date archive: <a href="<$MTBlogURL$>">Home</a> / <a href="<$MTBlogArchiveURL$>">Archive</a> / <span class="Selected"><$MTArchiveTitle$></span> And for an individual arcive: <a href="<$MTBlogURL$>">Home</a> / <a href="<$MTBlogArchiveURL$>">Archive</a> / <MTEntryCategories glue=" & "><a href="<$MTCategoryArchiveLink$>"><$MTCategoryLabel$></a></MTEntryCategories> / ...

Adam Kalsey
May 5, 2004 1:24 PM

For me, it's helpful to hardcode some of my URLs (like the archive URL) into the templates because of the way I'm sharing templates across blogs. But using MTBlogURL and MTBlogArchiveURL is probably best for most. Good suggestion. Howeverm I don't like the category list in the breadcrumb. For a breadcrumb to be useful (and it might not be according to some reaseach I've read) it needs to be concise. Having a list of all the places within the site architecture that this element *might* be found is counter-productive.

Bas
May 6, 2004 9:28 AM

On the matter of the category list: I get your point and I am bound to aggree. Still, this depends mostly on how one uses the categories. If one always prvides a category, an item always has a single 'main' category, which could be used for a single breadcrum. Have a look at my site and tell me if you think it's useful (and usable) here. (If you can see through the Dutch language! ;-) And while your at it, give some attention to my filenames too: Google loves these!

Randy
May 10, 2004 7:19 AM

I use the SubCategories plug-in [http://www.rayners.org/2003/08/19/subcategories.php] for Movable Type to create a hierarchy of categories. I organized my categories so that the category hierarchy corresponds to what I want the breadcrumbs to look like. I then use code similar to that provided at the SubCategories site to generate the breadcrumbs.

Trackback from BnKB
February 6, 2005 11:17 PM

Breadcrumbs in Movable Type

Excerpt: Breadcrumbs in Movable Type :: Adam Kalsey Each MT template has the breadcrumbs manually defined. The only variable part of the breadcrumb is (in most templates) the last item in the list. So my archive template that creates both category...

This discussion has been closed.

Recently Written

Roadmap Outcomes, not Features (Sep 4)
Drive success by roadmapping the outcomes you'll create instead of the features you'll deliver.
Different roadmaps for different folks (Sep 2)
The key to effective roadmapping? Different views for different needs.
Micromanaging and competence (Jul 2)
Providing feedback or instruction can be seen as micromanagement unless you provide context.
My productivity operating system (Jun 24)
A framework for super-charging productivity on the things that matter.
Great product managers own the outcomes (May 14)
Being a product manager means never having to say, "that's not my job."
Too Big To Fail (Apr 9)
When a company piles resources on a new product idea, it doesn't have room to fail. But failing is an important part of innovation. If you can't let it fail, it can't succeed.
Go small (Apr 4)
The strengths of a large organization are the opposite of what makes innovation work. Starting something new requires that you start with a small team.
Start with a Belief (Apr 1)
You can't use data to build products unless you start with a hypothesis.

Older...

What I'm Reading