Not a developer? Go to MovableType.com

Plugin and Theme Directory

Template Hammer v1.0

By Six Apart
Posted September 21, 2007, in MT Tags, Templates, Widgets.

Details

Want to simplify your templates to remove all of the includes? Just smash 'em with the Template Hammer, and you'll get flat HTML versions of your templates with just the basic MT Template Tags needed to output your site. It's a great way to learn what the default MT4 templates really look like, or to get versions of new templates that will look familiar to users of older versions of MT, such as 3.x or 2.x.

Note: This plugin only works with Movable Type 4.

Compatibility

Movable Type versions: 4.3 Verified


Back

5 Comments

stavrosthewonderchicken on September 24, 2007, 7:22 a.m. Reply

What actually happens here? What does ‘register a list filter’ mean?

If I run this against a bunch of templates, does this create flat, include-less copies, or does it alter the templates? Or is it (I’m not clear on this ‘list filter’ thing) just a view of the templates, which remain unchanged? If if it changes the templates by replacing them with flattened ones, is there any way to go backwards (given the complexity of the originals)?

Beau Smith on September 28, 2007, 11:53 a.m. Reply

The Template Hammer plugin replaces the selected default modularized (with includes) templates with flattened (include-less) versions.

Template Hammer registers a filter in the “More actions…” menu at the top of the template listing which is used to perform the “hammering” or flattening of templates.

You can revert to the original template by choosing “Refresh templates” in the “More actions…” menu.

Applying a design (or skinning) Movable Type’s default templates will be much faster using the default modularized templates because each piece of shared code is one place. For example, if you want to edit the header of your blog, you edit the Header template module… or if you want to edit the layout of comments, there is only one place that you have to do this.

Flattening your templates will allow you to see the full template all at once. This is great when you are just starting to learn about the Movable Type, but when you begin to extend MT and create new templates it will take longer… you’ll have more code to manage overall, the redundant code in your templates will easily become out of sync and errors are easier to make.

I highly recommend climbing the small learning curve to understand the default modularized templates, you will quickly see the utility and efficiency they will bring to managing Movable Type templates.

Jesse Gardner has created a great visual diagram of how the abstracted templates are assembled together.

Violet on March 7, 2010, 1:18 p.m. Reply

The diagram that’s referred to in the last sentence above now resides on Jesse’s plasticmind site:

http://blog.plasticmind.com/movable-type/mt3-vs-mt4-templates/

But, of course, it’s now superseded by MT5.

Scroll down to the section labeled Websites in this mt.org post by Beau Smith and check out the diagrams for the changes in architecture, etc. in migrating from MT4 to MT5.

matthewwilson1121

matthewwilson1121 on August 29, 2016, 9:41 a.m. Reply

Here are the india’s pride most popular Prime Minister Narendra Modi Gallery. You can free to download narendra modi full image from our website.

supert

supert on March 7, 2017, 11:09 p.m. Reply

Thanks for the development of this plugin works perfectly

caiu na net videos de sexo videos porno pornĂ´ amador

Leave a Comment