Not a developer? Go to MovableType.com

Documentation

Section

A utility block tag that is used to wrap content that can be cached, or merely manipulated by any of Movable Type's tag modifiers.

Attributes:

  • cache_prefix (optional)

    When specified, causes the contents of the section tag to be cached for some period of time. The 'period' attribute can specify the cache duration (in seconds), or will use the DashboardCachePeriod configuration setting as a default (this feature was initially added to support cacheable portions of the Movable Type Dashboard).

  • period (optional)

    A number in seconds defining the duration to cache the content produced by the tag. Use in combination with the 'cache_prefix' attribute.

  • by_blog (optional)

    When using the 'cache_prefix' attribute, specifying '1' for this attribute will cause the content to be cached on a per-blog basis (otherwise, the default is system-wide).

  • by_user (optional)

    When using the 'cache_prefix' attribute, specifying '1' for this attribute will cause the content to be cached on a per-user basis (otherwise, the default is system-wide).

  • html_tag (optional)

    If specified, causes the content of the tag to be enclosed in a the HTML tag identified. Example:

        <mt:Section html_tag="p">Lorem ipsum...</mt:Section>

    Which would output:

        <p>Lorem ipsum...</p>
  • id (optional)

    If specified in combination with the 'html_tag' attribute, this 'id' is added to the wrapping HTML tag.

Back