Alternate Template Collection
Published on May 30, 2005 at 9:00 PM EST
Last updated on October 9, 2006 at 12:02 AM EST
In the Tutorials category.
Movable Type has a nifty feature called “alternate templates” which allows you to substitute the default MT interface with a customized one. These aren’t “individual archive” or “category archive” template replacements, these are replacements for the actual entry-editing interface. I’ve…
Movable Type has a nifty feature called “alternate templates” which allows you to substitute the default MT interface with a customized one. These aren’t “individual archive” or “category archive” template replacements, these are replacements for the actual entry-editing interface.
I’ve only made a handful of alternate templates, but more will be added here as I create and modify them. (You might want to look at set up first.) Currently available are:
- Updated 2005/12/19:
edit_entry.tmplis for creating and editing entries. - Added 2005/05/30:
preview_entry.tmplis for previewing entries. (Deprecated. Superceded by the plugin Better Entry Preview.) - Added 2005/05/30:
upload.tmplandupload_complete.tmplare for uploading files. (Deprecated. Superceded by the plugin Better File Uploader. - Added 2005/05/31:
list_blog.tmplis the “Main Menu” screen. (Deprecated. Not need with MT 3.2.)
Set Up Alternate Templates
In mt.cfg, add the line
AltTemplatePath ./alttmpl
Then, you’ll need to create an alttmpl folder in your MT folder. And within that create a cms folder, creating a structure like this: alttmpl/cms/.
Now, just upload any of these alternate templates into alttmpl/cms/. Any templates found in this directory will be used instead of the default ones.
The Alternate Templates
edit_entry.tmpl (for creating and editing entries)
Updated 2005/12/19.
This template has been updated to work with MT version 3.2.
The Edit Entry template has been revised quite a bit, incorporating my Tag Suggest feature and a variant on Alex King’s QuickTags. Download edit_entry.tmpl.
The basic MT editing tools (bold, italics, hyperlink, etc) are replaced with quite a few QuickTags: bold, italics, hyperlink, unordered list, ordered list, list item, paragraph, blockquote, code, heading level 2, heading level 3, “Close Tags” and a dictionary link. Additionally, the “Right Thumb,” “Gallery” and “Gallery Thumb” code used on danandsherree.com are here as buttons, too (more detail in Dynamic Site Design: Displaying Thumbnails with a Random Background). Mouseover any button to get a little description of its use.
It’s also worth pointing out that using the QuickTags code solves the problem of jumping back to the top of the textarea when using Firefox.
The Tag Suggest implementation includes the updated references to edit_entry.tmpl, but you’ll still need to follow the rest of the instructions to complete this feature.

A “Now” button has been added to the template, too. Click the Now button to update the Authored On field with the current date and time.
Henrik Gustafsson updated the unordered and ordered list functionality. Now, you can select a number of lines then click the OL or UL buttons and see the whole selection turned into a list. Each newline results in a new list item. Very slick!
This template has been tested with version 3.2 of Movable Type only. An older template has been tested and used with MT 3.16 and 3.17.
preview_entry.tmpl (for previewing entries)
This template has been superceded by the plugin Better Entry Preview.
Added 2005/05/30.
This template has been tested with MT versions 3.16, 3.17 and 3.2. Updated for version 3.2 to include keyboard shortcuts.
I often use the Preview feature to proofread an entry, but the text is too small to be easily read. Larger (and serif) text fixes the problem. Download preview_entry.tmpl.
It’s worth noting that while this template works correctly in IE and Firefox (I haven’t tried it in other browsers), the code is actually invalid.
upload.tmpl and upload_complete.tmpl (for uploading files)
These templates have been superceded by the Better File Uploader plugin.
Added 2005/05/30.
These templates have been tested with MT versions 3.16, 3.17 and 3.2.
I wrote extensively about these two templates in A Better Upload File Template.
Using some JavaScript a dynamic upload directory is selected (in the form of upload/year/month/) and the thumbnail dimensions are calculated when the thumbnail button is checked. Lastly, the For Photo Gallery button makes MT-created galleries much faster and easier to build (though some extra code is required).
Download upload.tmpl and upload_complete.tmpl.
list_blog.tmpl (the “Main Menu” screen)
Added 2005/05/31.
This template has been tested with MT versions 3.16 and 3.17. It’s no longer necessary with MT 3.2.
This template only has one very small change: a “TrackBacks” link is added to each weblog on your system. The new link is circled in the screenshot at the right. Download list_blog.tmpl.
If you found this article useful, please consider supporting this site through a donation.
Comments
So far, there are 20 comments and Trackbacks on this entry. Add yours!
To make those Quicktags fit in better, you can add the styling found here (I was using Alex King’s QuickTags too for that hack :))
Actually that was for the old MT, if you wrap the quicktags js with a quicktags div, then you can use this CSS
.quicktags input {
background: #F5F9FF;
border: 1px solid #738C99;
color: #000;
font: Georgia, “Times New Roman”, Times, serif;
margin: 1px;
padding: 3px;
}
Thanks, Arvind. I’ve incorporated the above CSS into edit_entry.tmpl.
We’ve just posted the newest article to the Professional Network site: Customizing Movable Type’s Interface with Application Templates. As we mentioned when Movable Type 3.16 was released, our support for custom application templates has been beefed up…
Subway is ending its Sub Club promotion after 20 yearsOh man, Thomas isn’t going to be happy about this one How Do Space Pictures Get So Pretty? Photoshop, of course. MovableType alternate templates (mainly the image uploading one)Note to self:…
Need to investigate if I might be able to get these alternate templates working with David’s help.
Im having some trouble getting edit_entry.tmpl to work. I edited my mt.cfg file and added the line mentioned above also created a dir in my moveabletype dir called alttmpl and a cms dir inside of that and uploaded the edit_entry.tmpl template i got from here into that dir. Any help would be appreciated.
FYI to any other readers, as near as I can figure out, drastick’s problem is due to MT 3.15 not playing nice with my alternate template.
I have the same problem as drastick. I’m on 3.16 (upgrade to 3.2 hasn’t worked - yet) I’m wondering whether the instructios for mt.cfg are correct. The path doesn’t look complete. I have MT in www.mysite.com/MT/ so I’d expect the path to be:
AltTemplatePath http://www.mysite.com/MT/alttmpl OR
AltTemplatePath http://www.mysite.com/MT/alttmpl/cms/
Where am I going wrong?
Dennis—Add this line to your mt.cfg file:
AltTemplatePath ./alttmpl
Then create www.mysite.com/MT/alttmpl/cms/.
Upload the alternate templates to www.mysite.com/MT/alttmpl/cms/.
OK - so that worked. The only problem I now have is that the list of tags words I use with the Technorati Tags plugin has ‘disappeared.’ So where to now please?
Does the Technorati Tags plugin replace edit_entry.tmpl or affect the keywords field? If it does, I’m sure the two won’t play nice—they’re both altering the same field.
Hello, Dan. I was having trouble using your alternate entry_edit.tmpl in MT 3.15; but when I upgraded to 3.2 (and downloaded your modified template), everything started working fine.
Do you or anybody else have a similar sort of new template for the comments.tmpl template — one that would allow my readers to select text and click on a [B] or a [I] button to get bold and italics, and to add links and ol’s and ul’s, and all that cool sorta stuff, without having to type scary-looking XHTML tags?
I noticed that at one point I uncommented a line in my mt-config.cgi file that reads “AltTemplate comments comments.tmpl”, so I must have had some sort of idea that such a thing existed.
Do you have one? If not, can you make one? I love your edit_entry.tmpl! And if you do, or if someone does, do I put it in the same ~/alttmpl/cms directory as I put edit_entry.tmpl, or somewhere else?
Oh, one other thing I’m curious about. A friend of mine has a blog on WordPress, and he has a cool feature: as one is typing a comment, its preview appears in real time, as you type, below the entry box. That means you don’t have to click Preview; just scroll down, and you can see the preview of your comment.
Is that possible to do in MT? If you want to see what it looks like in action, his blog is Patterico’s Pontifications. Just pick any post, click comments, and start typing to see what I mean.
Thanks!
Dafydd
Over on Movalog you can find QuickTags for Comments. Eclecticism used to have a live preview feature for commenters; you might contact Michael about that.
Or, bounce back to Movalog and look at the comment field Arvind has set up—using a WYSIWYG editor!
Nina skriver rätt mycket recept på sin sida. Häromveckan flyttade vi över hela hennes sajt till Movable Type, men Movable Type har ingen smart funktion för att formatera listor (vilket är vad hon använder i recepten). Det borde inte vara…
Just thought you’d want to know - I’ve been trying to get the alternate edit_entry.tmpl to work in conjunction with the Custom Fields plugin, and it’s not. Working, that is.
I haven’t been able to figure out why, yet. I’ll let you know if I do.
Lena,
I had much the same problem, and have mostly solved it. Take a look here for my explanation, and to download the fixed edit_entry.tmpl file.
Over at eatdrinksleepmovabletype there is a great collection of alternate templates for the movable Type interface. In particular, the edit_entry.tmpl file adds several excellent tools to the entry screen. However, if you were using the CustomFields or…
Now that you have upgraded to 3.3, have you also created updated templates or do they still seem to be working with the latest version of MT?
Hi Joyce—No, I haven’t bothered to update any of the alternate templates. As noted near the top of the document, several plugins now replace the alt. template functionality. The only one missing out is edit_entry.tmpl—I’m working on a plugin for the Quicktags implementation, but it’s not complete yet.
TrackBack URL for Alternate Template Collection:
http://www.eatdrinksleepmovabletype.com/cgi-bin/mt/mt-tb.cgi/289
![[TypeKey Profile Page]](http://www.eatdrinksleepmovabletype.com/nav-commenters.gif)