Movable Type Templates

Movable type templates are the means by which you create and customize your blogs.  Movable type has its own code, similar to HTML that makes up each template and allows you to customize accordingly.  For example, the “main index” template makes up the structure of the landing page on your blog.  Within each template you have templates called modules, modules make up most of the MT blog pages.

MTOS Template Syntax <$mt:Include module=Banner Header”$> - <$m lets MT that there is something that needs to be processed.  The include portion tells MT to include a module called “Banner Header”.  Modules break up top level templates into smaller, more manageable pieces.  Modules are used to insert headers, footers, etc.

To create a module go to the main templates page and click on the section called template modules and go to create.  In the upper text field type in the name of your new module.  Then in the lower text box type in what you would like the module to insert when you include it in a page.  For example, if the name of the new module is greetings, then the module code would look something like this when inserted <$mt:Include module=”greetings”$>, when you preview the module it would display whatever you put in the module text box.

*widgets essentially serve the same purpose as a modules *module names are not case sensitive *MTOS “tags” are built-in templates

*MTOS “tags” <$mt:BlogName$> <$mt:BlogTemplateSetID$> <mt:Entries> <mt:Ignore> <$mt:Include$> <$mt:Link$> <$mt:Var$>

Module Examples HTML Head banner header entry summary sidebar banner footer analytics code

   

 

By max on September 18, 2009 2:02 PM

Categories: