Recently in Templates Category

In my spare time I've been working on http://www.trendolizer.com, a site that automatically finds and posts stories, videos, images etc. that are trending on Facebook.  I recently redesigned the site using the Bootstrap framework, and today seems to be an excellent time to point out that there is also a 'politics' section at http://politics.trendolizer.com where you can follow what is trending regarding the U.S. presidential election.  Read on if you want to know more about the technical details.

Mark Carey from MT-hacks has announced a Bootstrap-based theme for Movable Type.  If you don't know Bootstrap yet, it is a collection of stylesheets and javascript files that you can use to quickly put together a great-looking website using pre-made elements.  The theme can be downloaded here.  Documentation is still incomplete at this time, but I'm sure that will change soon.

A recent forum post asked about possible solutions for a Movable Type error that looked like this:

Error rebuilding file /var/www/...: Publish error in template '...': Error in tag: error in module...: Publish error in template '...': Error in tag: Error in tag: error in module ...: Publish error in template '...': Unknown tag found: ...

The weird thing was that the error only happened when publishing the particular file via the publish queue using the 'run-periodic-tasks' script, but it didn't happen when publishing the file 'by hand'.
On a recent project I had a Movable Type blog with entries containing embedded videos hosted on YouTube and Vimeo, and I needed a way to get a thumbnail image for each video so they could be displayed somewhere else on the site.  Here is my solution...
Dan from eatdrinksleepmovabletype.com has released a new theme for Movable Type and Melody called 'Patrick'.  It sports an impressive 13 settings screens that let you change everything, from colours, columns, labels, headers and footers, but also if (and how) to display Facebook comments, Twitter integration, highlighted entries, and much, much more.
This Japanese blog post alerted me to the existence of an undocumented 'to_json' modifier in Movable Type 5.  There is a well documented list of global modifiers like encode_html, trim, capitalize... available here, but 'to_json' seems to be missing from that list or any other place in the documentation.  What does it do?
It is quite simple to list all (or some) entries in one or more categories using Movable Type's MTEntries tag in combination with the 'category' or 'categories' attribute.  But what if you need to display just the entries that are *not* in a category? I was recently faced with this problem, and here is the solution I came up with:
I recently found out about the IncludeMap plugin while browsing the Japanese Movable Type Plugin Directory (which seems way livelier than the 'official' one).  This neat plugin builds a map of the relationships between your various templates, showing you a neat visualisation of which templates include which modules and widgets, but also the other way round, going multiple levels deep.
I recently had to deal with a list of entries of arbitrary length, and every second out of three had to be displayed slightly differently than the one before and after it.  The idea was to create sort of a three-column effect, with each 'middle' entry sporting a left and right border.  A very useful tool for this is Movable Type's built-in modulo operation.
User birdahonk on the Movable Type forums was looking for a way to display a list of the countries in which the pictures on his photoblog were taken.  The country of each photo was stored in a custom field, and he would like to have a simple list of them, without duplicates.  Some Movable Type template magic to the rescue!

Movable Type Help?

"Can my Movable Type issue or project be taken care of by a professional?" Yes It Can Be! Contact YesItCan.be
Powered by Movable Type 5.2.7