FAQ: Remove duplicate Contents from the Templates

Question

I want to change my weblog's banner. However, this is a laborious task. The banner is defined in several templates. Do I always have to change each of these?

Answer

Indeed, the original templates that are distributed with Movable Type are not structured very well. Many parts seem to be copied from template to template. Fortunately, there is a special tag that enables us to write a section for a template once and use it in different situations. Maintenance will be easy, as the changes have to be done at just one location.

Please read Organize your Templates with MTInclude for learning about the MTInclude tag.

mgs

Feedback is welcome!

What do you think about this entry? Was it interesting or boring? I would like to hear your comments. If the text was helpful, please consider setting a link to http://www.movable-type-weblog.com/.

No spam please!

For protecting this weblog I have installed the MT-Approval Plugin. You have to view a new comment in preview mode, before it is saved on the server. Moreover, I will view your comment manually, before it is published. You can find more information on the subject in the entry Weblog Spamming Basics.

With an active TypeKey session, your comment will be published immediately.

Post a new comment

TypeKey has temporarily been disabled at this location. Please create your comment without using TypeKey or log in from the preview dialog.




Remember Me?