MT4 Templates Don't Work

I've been having problems getting Movable Type 4 working properly on my new server. Everything's working fine, except for perhaps the most important part -- the templates. MT relies on template pages, which help generate the HTML pages during rebuilds, or when you post a new entry, for example.

Unlike in MT3.x, where the templates were static files, and could be edited directly, MT4 has made use of the Codepress editor and stuffed the templates into the database. This makes it difficult to get to them, and I'd have to locate all the code, extract it, edit it, and replace it, hoping not to damage the database with my limited MySQL vocabulary.

Either that, or use the Codepress editor (which renders a JavaScript editing window in your browser). The trouble is that the editing window for templates is completely greyed-out, and the associated "Insert..." dropdown list doesn't insert anything. Without being able to modify the templates through this interface, MT4 is pretty much crippled. Sure, I can switch the default templates around, but then I get things I don't want, like a global archive index, listing every single entry on one page, and I can't insert any useful objects into the pages. What I end up with is a pretty stock blog, with none of the customizations I've worked so hard on in the past.

edit_template.jpg

I've tried different browsers (IE7, Firefox, Netscape, Opera), and different browser permissions, thinking it might be something wrong with the Codepress editor. I've even installed Codepress on my server separately, but it works fine, as does the Codepress that comes in the MT package. This suggests there's nothing wrong with the apache server, or the browsers I'm using.

It's probably something with JavaScript, since the "Syntax Highlight" buttons that should show up in the editor aren't there. The really weird part is, except for some guy in Japan, I'm the only one with this problem on the MT forums. I'd really like to sort this out, because MT4 appears to have some really great features otherwise.



1 Comment

Do you have FireBug isntalled anywhere?

If so, when you load the Edit Template screen with FireFox and flip to the Firebug console do you get any javascript loading errors?

I ran into this issue briefly until I saw the MT was trying to load an HTML file that was part of the CodePress editor. My cruft-free URL rewrite rules where changing those requests to a file that didn't exist.

I'm not sure you are experiencing the same problem (the end result is the same), but I'm pretty sure checking that page with FireBug will reveal what ails your system.

Leave a comment

Recent Entries

  • The Placebo Effect

    So, how's that homeopathy working for you? The Strange Powers of the Placebo Effect - YouTube...

  • Coffee and a Devil's Star

    Reading another Jo Nesbo book (is that 'Joe' or 'Yo'?) and grabbing a cup at Williams on Northfield. I'm all out of order on this...

  • 5 Reasons No One Is Guestposting At Your (My) Blog

    Image via WikipediaWell, obviously, I've not been looking for guest posters. But apparently, it's a thing you can do to get more content and more...

  • Gearing Up for the 2011 Zombie Invasion

    Image by aeviin via FlickrPut on your brains, the zombies are coming. Zombies make their appearances here and there all through the year, but you...

  • My Mai Tai

    A Trader Vic mai tai, straight from the book. Remember, the only fruit juice in a mai tai should be lime. Yes, well, there should...

Close