Writing MGI Tags
MGI incorporates powerful back-end processing with simple HTML-style tags. No matter how complex those back-end processes are, the tags stay simple and easy to use. To facilitate ease of use, there is a common syntax for all MGI tags.
MGI Tag Syntax
Each MGI tag has three distinct components:
1. Opening and Closing Characters:
2. Tag Name
Some MGI tags consist of two tags, a beginning tag and an ending tag. A beginning tag follows the syntax described above with required and optional parameters. An ending tag always consists of an opening character, a forward slash (/), the name of the MGI beginning tag, and the closing character. The space between a beginning and ending tag is known as the body and can consist of text or other MGI tags. For example, this mgiGuestBook tag includes a beginning tag with one required parameter, a body, and an ending tag. In the following example, text and mgiFieldContent tags are included in the body of the mgiGuestbook tag.
<mgiGuestbook FileLocation="GuestbookLog.html"> <mgiFieldContent name="name"> wrote to us and said: <mgiFieldContent name="comments"> <mgiFieldContent name="name"> can be reached at <mgiFieldContent name="email"> </mgiGuestbook>
[Processing Tags] [Default Home Pages] [Errors] [MGI Data Folder] [Writing Tags] [Using Tags] [Embedding Tags]
[User Guide Main Menu] [Understanding MGI Menu] [Using MGI Menu] [Referencing MGI Menu]