Not a developer? Go to



BuildPage callbacks are invoked just after a page has been built, but before the content has been written to the file system.

Input Parameters

  • $cb - a reference to the current MT::Callback object handling this event.
  • $args - An associative array that identifies the page being built.

The parameters given are include those sent to the BuildFileFilter callback. In addition, the following parameters are also given:

  • Content - This is a scalar reference to the content that will eventually be published.

  • BuildResult - This is a scalar reference to the content originally produced by building the page. This value is provided mainly for reference; modifications to it will be ignored.

Return Value


Example Handler

sub build_page {
    my ($cb, %args) = @_;