ModPro Elements Reference

A complete list of the base ModPro elements and their attributes.

<comment>
<include>
<module>
<timestamp>

<comment>

Adds a comment to the HTML output

Attributes: None

Example:

<mp:comment>Created by Jody Gustafson</mp:comment>
      

<include>

Includes another XML file into this one. Used to import content or other ModPages modules. Can be placed anywhere in the ModPages file.

Attributes:

  • href: Location of the file to import. Can be relative or absolute.

Example:

<mp:include href="../include/commonComponents.xml"/>
      

<module>

Either defines a module or acts as a placeholder for a referenced module.

Attributes:

  • name: Name of the module that will be used to identify it when referenced.
  • ref: When acting as a placeholder this is the name of the referenced module.

Example:

<mp:module name="bodyContent">Hello MPML</mp:module>
<mp:module ref="bodyContent"/>
      

<timestamp>

Adds the date and time that the file was compiled to the HTML output.

Attributes: None

Example:

<p>Page updated:<mp:timestamp/></p>