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.

Breadcrumbs in Movable Type

Freshness Warning
This blog post is over 19 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>

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

Too Big To Fail (Apr 9)
When a company piles resources on a new product idea, it doesn't have room to fail. That keeps it from succeeding.
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.
Mastery doesn’t come from perfect planning (Dec 21)
In a ceramics class, one group focused on a single perfect dish, while another made many with no quality focus. The result? A lesson in the value of practice over perfection.
The Dark Side of Input Metrics (Nov 27)
Using input metrics in the wrong way can cause unexpected behaviors, stifled creativity, and micromanagement.
Reframe How You Think About Users of your Internal Platform (Nov 13)
Changing from "Customers" to "Partners" will give you a better perspective on internal product development.
Measuring Feature success (Oct 17)
You're building features to solve problems. If you don't know what success looks like, how did you decide on that feature at all?
How I use OKRs (Oct 13)
A description of how I use OKRs to guide a team, written so I can send to future teams.

Older...

What I'm Reading

Contact

Adam Kalsey

+1 916 600 2497

Resume

Public Key

© 1999-2024 Adam Kalsey.