Ye Olde
Talbott Blog

Typo MeasureMap Goodness

So I got an invite to preview MeasureMap the other day, and I wanted to get it up and running on my Typo blog. Tonight I finally got it working, and just wanted to record for posterity how I did it.

My strategy here is actually a combination of two different methods I found for doing this, the first from Dennis Lamotte and the second from Kevin Clark. Both of them were workable, so I combined Dennis’ use of a partial with Kevin’s actual experience (Dennis isn’t currently using Typo), and I think came out with something even better. Do check their instructions out too, though, especially if you have any difficulties with mine.

Integrating MeasureMap in to Typo

First of all, I’m assuming you’re running at least Typo 2.5.8. If not, you’ll need to upgrade – I did this before adding MeasureMap and process was painless. At this point I’ll also note that we’re going to be editing your theme, so you might want to create a backup copy.

Next up, we need to add a new partial that will do our MeasureMap heavy lifting, so put the following in the new file views/shared/_measuremap.rhtml (all the paths from here on out are from the root of your theme directory):