Need someone to lead product or development at your software company? I lead product and engineering teams and I'm looking for my next opportunity. Check out my resume and get in touch.

Breadcrumbs in Movable Type

Freshness Warning
This article is over 16 years old. It's possible that the information you read below isn't current.

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>

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

A framework for onboarding new employees (May 15)
There’s no single good way to onboard an employee that works for every role. Here's a framework for creating a process that you can adapt to each situation.
TV hosts as a guide for software managers (May 10)
Software managers can learn a lot from journalists or late night TV hosts and how they interview people.
The Improvement Flywheel (Apr 29)
An incredible flywheel for the improvement of a development team. Fix a few things, and everything starts getting better.
Managers and technical ability (Dec 26)
In technical fields, the closer you are to the actual work being done, the closer your skills need to resemble those of the people doing the work.
Dysfunctions of output-oriented software teams (Sep 17)
Whatever you call it, the symptom is that you're measuring your progress by how much you build and deliver instead of measuring success by the amount of customer value you create.
Evaluative and generative product development (Aug 30)
Customers never even talk to the companies that don't fit their needs at all. If the only product ideas you're considering are those that meet the needs of your current customers, then you're only going to find new customers that look exactly like your current customers.
Product Manager Career Ladder (Aug 19)
What are the steps along the product management career path?
Building the Customer-Informed Product (Aug 15)
Strong products aren't composed of a list of features dictated by customers. They are guided by strong visions, and the execution of that vision is the primary focus of product development.

Older...

What I'm Reading

Contact

Adam Kalsey

+1 916 600 2497

Resume

Public Key

© 1999-2020 Adam Kalsey.