Block Tags

Block tags can contain other tags or text. They enclose text by an opening and closing tag like so:

<mt:Entries lastn="5">
Your HTML here.
</mt:Entries>

Examples

  • <mt:Entries> - loop over a set of entries
  • <mt:Comments> - loop over a set of comments
  • <mt:IfRegistrationEnabled> - conditionally display the contents of the tag if registration is enabled on this blog

This page is part of the Movable Type Developer Guide

This page was last updated on 2008-09-17, 14:41.

Leave a note

Have a question? Please use the MT Forums. Notes submitted on documentation should pertain to tips & hints regarding documentation. Your note may be removed once its contents have been integrated into the body of the page.