The fine folks at Six Apart have officially released Movable Type 3.1. I’ve been beta testing this for a bit over a week and it’s pretty nice. They also released a pack of plugins for it that includes MT-Blacklist.
Categories
- Administrative (12)
- Anime Stuff (35)
- Apple (24)
- Blogging (22)
- Food (18)
- Games (31)
- GBA Games (2)
- Geeky Stuff (97)
- General (126)
- Health (37)
- Health News (14)
- HTML (4)
- Humor (80)
- Interesting (62)
- iTMS (5)
- Life (16)
- lung (21)
- Lung Transplant (55)
- Manga Stuff (4)
- Media (9)
- Microsoft (1)
- Movies (22)
- Music (42)
- News (14)
- Of The Day (5)
- OS X (21)
- OSX Games (6)
- Personal (21)
- Photo (10)
- Pulmonary Fibrosis (7)
- QOTD (51)
- quizzes (10)
- Random Stuff (112)
- Recipes (22)
- Reviews (9)
- Strange (21)
- Tech (17)
- Television (20)
- Tune of the Day (9)
- Uncategorized (4,132)
- Web (37)
- Windows (3)
- World of Warcraft (11)
Archives
- June 2007 (1)
- November 2006 (1)
- August 2006 (1)
- June 2006 (11)
- May 2006 (18)
- April 2006 (31)
- March 2006 (9)
- February 2006 (17)
- January 2006 (15)
- December 2005 (15)
- November 2005 (17)
- October 2005 (32)
- September 2005 (35)
- August 2005 (9)
- July 2005 (19)
- June 2005 (12)
- May 2005 (18)
- April 2005 (35)
- March 2005 (29)
- February 2005 (8)
- January 2005 (4)
- December 2004 (16)
- November 2004 (45)
- October 2004 (48)
- September 2004 (73)
- August 2004 (68)
- July 2004 (71)
- June 2004 (48)
- May 2004 (67)
- April 2004 (54)
- March 2004 (64)
- February 2004 (41)
- January 2004 (60)
- December 2003 (57)
- November 2003 (77)
- October 2003 (106)
- September 2003 (92)
- August 2003 (95)
- July 2003 (142)
- June 2003 (98)
- May 2003 (162)
- April 2003 (178)
- March 2003 (182)
- February 2003 (165)
- January 2003 (108)
- December 2002 (107)
- November 2002 (108)
- October 2002 (129)
- September 2002 (136)
- August 2002 (115)
- July 2002 (184)
- June 2002 (118)
- May 2002 (132)
- April 2002 (150)
- March 2002 (182)
- February 2002 (159)
- January 2002 (150)
- December 2001 (112)
- November 2001 (114)
- October 2001 (110)
- September 2001 (95)
- August 2001 (79)
- July 2001 (54)
- June 2001 (7)
- May 2001 (8)
- April 2001 (6)
- March 2001 (10)
Recent Posts
-
Movable Type 3.1: Dynamic Templates
One of the cool new things in Movable Type 3.1 (which should be out pretty damn soon now) is the dynamic PHP publishing. Why is this a big thing? Because up till now if you’d changed a something like your individual archive page template you’d have to go back and rebuild your whole site. If you’ve got a large number of posts this tends to take a while. Now, it can just render the page when requested, which means doing a pushlish all will go much faster.
After a few rough starts, I got the whole thing running on this blog. The index page and the feeds are all static, but any archive page is built up on the fly. And you can even turn on a caching if you so desire. When you do this, a copy of the dynamic page is kept around for an hour so that if someone else visits that page again within the hour it doesn’t have to rebuild it again from the database.
Setup for this feature was actually much easier than I thought, once you know a few things. One, it doesn’t work if you are using Berkeley DB as your database. Which required me to convert to using mySQL. Which worked out okay overall, but I had to do a bit of tweaking since I seemed to have some odd corruption in my database. Once that was done I just had to turn on the dynamic publishing for the templates I wanted and create a templates_c directory in my blog’s home directory. One republish later and everything was working just fine. It’s pretty much transparent to the person browsing the site (which means your existing permalinks won’t change at all.
It also lets you do caching of the dynamicly generated pages via the Smarty template engine. If you turn it on, dynamicly generated pages are cached for an hour by default (though you can tweak that if you need to). Pretty slick. While my site doesn’t generate a ton of traffic, this is the kind of thing that could really be useful for a site that gets tons of hits a day.
One or two other gotchas. If you are using PHP you can’t use opening tags in the format <?, you need to have them in the format <?php. As long as you do that you shouldn’t have any issues. Also, this is supposedly not compatible with any other plugins (not an issue for me as I don’t use any other plugins).
Another issue is how dynamic pages are built. I tend to do my template editing locally using cyberduck+subethaedit and I have my templates linked to a local file on my web server. I find it is much easier to edit them that way. The problem with this is that if you make a change to the local file, you need to go back into MT and save it there also for it to take affect. I personally think it should make a check to see if the file version has changed and load that one in if so.
Next thing to try: doing more with categories and sub-categories (You can see a bit of a preview to the right).