MAML & MAGE
The following documentation is generated automatically from the class definitions used by Molly to implement MAML tags. All MAML & MAGE tags have optional id and style attributes. If you do not provide an ID, Molly will automatically generate a unique ID where appropriate. Default attribute values are shown. Some attribute defaults are set in the system/molly.ini file.
maml:tagAttributes:
- id
- style
Prototype: >maml:tag id = "" style = ""></maml:tag>
<maml:tag> is a generic class for MAML tags so that they can
inherit methods such as id(). Undocumented tag classes inherit this documentation.
maml:soapAttributes:
- wsdl
- proxy
- uri
- method
- parameters
- dump
- id
- style
Prototype: >maml:soap wsdl = "" proxy = "" uri = "" method = "" parameters = "" dump = "off" id = "" style = ""></maml:soap>
This tag allows for the inclusion of various web services called SOAPS.
maml:soapitemAttributes:
- key
- id
- style
Prototype: >maml:soapitem key = "" id = "" style = ""></maml:soapitem>
<maml:tag> is a generic class for MAML tags so that they can
inherit methods such as id(). Undocumented tag classes inherit this documentation.
maml:picklistAttributes:
- border
- cellspacing
- cellpadding
- table
- key
- orderby
- criteria
- maxentries
- detail
- mode
- bgcolor
- hilitecolor
- hilite
- paging
- rowstyle
- id
- style
Prototype: >maml:picklist border = "0" cellspacing = "0" cellpadding = "0" table = "" key = "" orderby = "" criteria = "" maxentries = "" detail = "" mode = "edit" bgcolor = "" hilitecolor = "" hilite = "off" paging = "off" rowstyle = "" id = "" style = ""></maml:picklist>
Optional Attribute: border [integer - a table border attribute, really]
Optional Attribute: cellspacing
Optional Attribute: cellpadding
Optional Attribute: mode // [input|edit|output|signature]
Optional Attribute: orderby // Sort order, must be a field name from the specified table
Optional Attribute: maxentries // Number of records to display
Optional Attribute: hilitecolor // Specifies color of even rows
Optional Attribute: bgcolor // Specifies color of odd rows
Optional Attribute: hilite // Specifies whether or not to set hilite and bgcolor to their defaults
Optional Attribute: paging // Do you want to divide up the records into pages off is default
Optional Attribute: rowstyle // Style is for table, rowstyle is giving each row an inline style
Required Attribute: table // Database table name
Required Attribute: key // key field name
Required Attribute: criteria // SQL WHERE clause
Required Attribute: detail // URL of page to display selected record
Contains one or more columns
maml:columnAttributes:
- field
- header
- detail
- id
- style
Prototype: >maml:column field = "" header = "" detail = "" id = "" style = ""></maml:column>
column
Required Attribute: field
Optional Attribute: linked // [ nolink | invisible | on ]
Optional Attribute: style
Contains the text to use for column head labels
Example:
<maml:picklist border="0" cellspacing="2" cellpadding="3" table="test" key="age" criteria="age > 0" detail="form.maml" mode="edit">
<maml:column field="name">Name</maml:column>
<maml:column field="eyecolor">Eye Color</maml:column>
<maml:column field="age">Age</maml:column>
</maml:picklist>
maml:selectAttributes:
- table
- orderby
- criteria
- key
- offset
- maxentries
- detail
- query
- SelectTemplateCache
- RecordTemplateCache
- OutputCache
- cache
- displayMax
- detailCount
- id
- style
Prototype: >maml:select table = "" orderby = "" criteria = "" key = "" offset = "0" maxentries = "" detail = "" query = "" SelectTemplateCache = "" RecordTemplateCache = "" OutputCache = "" cache = "" displayMax = "" detailCount = "" id = "" style = ""></maml:select>
Optional Attribute: table // database table name. Required if query not specified
Optional Attribute: key // key field name. Required if query not specified
Optional Attribute: criteria // SQL WHERE clause. Required if query not specified
Optional Attribute: offset // specify numer of record to start at.
Optional Attribute: maxentries // limit records returned by query
Optional Attribute: orderBy //
Optional Attribute: groupBy //
Optional Attribute: query // specify an entire query overrides other fields
Optional Attribute: detail // URL of page to display selected record
The <maml:select> tag allows you to specify the fields you want retrieved inside a <maml:record>
tag using the name attribute of a <maml:field> element to specify which fields in the table(s) will
be queried. If format=off as it will by default then all your html and css between the record tags
will be used to create a repeating "template". This allows you to quickly develop what would be
otherwise very difficult to do custom display of results.
Example:
<maml:select table="test" key="age" criteria="age > 0" detail="form.maml" format="off">
<maml:record>
<div>
<span style="width:70px;">
<maml:detail href="">
<maml:field name="name"/>
</maml:detail>
</span><br/>
<span style="width:140px;background-color:lightgreen;">
<maml:field name="eyecolor"/>
</span><br/>
<span style="width:70px;">
<maml:field name="age"/>
</span><br/>
</div>
</maml:record>
</maml:select>
maml:recordAttributes:
- maxentries
- start
- OutputCache
- id
- style
Prototype: >maml:record maxentries = "" start = "0" OutputCache = "" id = "" style = ""></maml:record>
Optional Attribute: maxentries //number of records to display. Required if paging is on.
maml:detailAttributes:
- href
- id
- style
Prototype: >maml:detail href = "" id = "" style = ""></maml:detail>
Optional Attribute: href // URL of page to display selected record
maml:fieldAttributes:
- name
- id
- style
Prototype: >maml:field name = "" id = "" style = "" />
maml:field
Required Attribute: name //the name of the field you want from the table in query
Contains the text to use for column head labels
maml:dayfieldAttributes:
- name
- id
- style
Prototype: >maml:dayfield name = "" id = "" style = "" />
maml:field
Required Attribute: name //the name of the field you want from the table in query
Contains the text to use for column head labels
maml:timefieldAttributes:
- name
- id
- style
Prototype: >maml:timefield name = "" id = "" style = "" />
maml:field
Required Attribute: name //the name of the field you want from the table in query
Contains the text to use for column head labels
maml:urlfieldAttributes:
- name
- OutputCache
- LinkCache
- onclick
- target
- id
- style
Prototype: >maml:urlfield name = "" OutputCache = "" LinkCache = "" onclick = "" target = "" id = "maml_urlfield_1" style = ""></maml:urlfield>
maml:urlfield
Required Attribute: name //the name of the field you want from the table in query
Retrieves a url from the database and creates a link with it
if empty shows url in db as link
otherwise links around contents
maml:pagesAttributes:
- delimiter
- start
- maxPages
- id
- style
Prototype: >maml:pages delimiter = "" start = "0" maxPages = "15" id = "" style = ""></maml:pages>
Required Attribute: delimiter
maml:numrecsAttributes:
- id
- style
Prototype: >maml:numrecs id = "" style = ""></maml:numrecs>
Required Attribute
maml:nextAttributes:
- id
- style
Prototype: >maml:next id = "" style = ""></maml:next>
Required Attribute
maml:previousAttributes:
- id
- style
Prototype: >maml:previous id = "" style = ""></maml:previous>
Required Attribute
maml:breadcrumbAttributes:
- delim
- pagename
- id
- style
Prototype: >maml:breadcrumb delim = ">" pagename = "" id = "" style = ""></maml:breadcrumb>
An empty breadcrumb tag, <maml:breadcrumb />, will place it's path in the page, delimited by a default '>'.
maml:menuAttributes:
- appearance
- source
- name
- height
- selected
- bgimage
- id
- style
Prototype: >maml:menu appearance = "" source = "" name = "" height = "16px" selected = "0" bgimage = "/decor/realgranite.jpg" id = "maml_menu_2" style = ""></maml:menu>
Optional Attribute: appearance [tabs|pulldown|stacked]
Optional Attribute: source [database|array|inline]
Optional Attribute: name
Optional Attribute: height (style compatible height, i.e. 16px)
Optional Attribute: selected [selected]
Contains 1 or more menuitems, and nothing else.
maml:menuitemAttributes:
- href
- target
- selected
- id
- style
Prototype: >maml:menuitem href = "" target = "_self" selected = "unselected" id = "" style = ""></maml:menuitem>
Optional Attribute: href
Optional Attribute: target [_self|_top|_parent|_blank|frame name]
Optional Attribute: selected [selected]
Example:
<maml:menu appearance="stacked">
<maml:menuitem href="" target="_self" selected="selected">Home</maml:menuitem>
<maml:menuitem href="docs.maml" target="_self">Documentation</maml:menuitem>
<maml:menuitem href="modules/index.maml" target="_self">Modules</maml:menuitem>
<maml:menuitem href="" target="_self">Events</maml:menuitem>
<maml:menuitem href="" target="_self">Contacts</maml:menuitem>
<maml:menuitem href="" target="_self">Downloads</maml:menuitem>
</maml:menu>
maml:includeAttributes:
- src
- parse
- id
- style
Prototype: >maml:include src = "" parse = "maml" id = "" style = "" />
This tag allows you to include another file. This can be a
text file or an HTML fragment (.htmf) file. If the optional attribute
parse="maml" is set, then any maml tags in the file will be parsed. if
parse="html" is set, then the file is stripped down to whatever is between
the <body> and </body> tags before being included. This tag works
with both local and remote (via http) files.
Optional Attribute:id -- Molly will assign a unique ID.
Optional Attribute:style -- to override any default styles.
Required Attribute:src -- the location of the inclusion file, relative or absolute path.
Optional Attribute:parse -- [maml|html|xml|off].
maml:sitenameAttributes:
- id
- style
Prototype: >maml:sitename id = "" style = "" />
Empty tag; outputs the name of the site.
maml:nothingAttributes:
- id
- style
Prototype: >maml:nothing id = "" style = ""></maml:nothing>
Empty tag; outputs nothing.
maml:boxAttributes:
- title
- id
- style
Prototype: >maml:box title = "" id = "" style = ""></maml:box>
Puts a round-cornered box around its contents.
maml:interpolateAttributes:
- OutputCache
- InterpolateCache
- id
- style
Prototype: >maml:interpolate OutputCache = "" InterpolateCache = "" id = "" style = ""></maml:interpolate>
May contain anything. Interpolates any strings begining with $ as a variable. See also the <maml:setvariable /> tag.
maml:sourcecodeAttributes:
- src
- id
- style
Prototype: >maml:sourcecode src = "" id = "" style = ""></maml:sourcecode>
Optional Attribute: src
When used as an empty tag, src is required, otherwise it is ignored.
Renders src, or the text between <maml:sourcecode> and </maml:sourcecode> as
syntax colored code.
maml:insertAttributes:
- global
- id
- style
Prototype: >maml:insert global = "" id = "" style = "" />
Required Attribute: global
Inserts the value stored in the global variable whose name is passed in the global attribute. Can be used in conjunction with the config module which creates globals from a database table.
See also: <maml:interpolate>
Example: <maml:insert global="g_GlobalName"/>
maml:serverAttributes:
- value
- id
- style
Prototype: >maml:server value = "" id = "" style = "" />
Required Attribute: value
<server value="[ name | address | referrer | uri ]"/>
Inserts the value of various server environment variables.
maml:pageAttributes:
- title
- permitted
- DeniedPage
- style
- header
- footer
- bgcolor
- bgimage
- id
Prototype: >maml:page title = "Molly" permitted = "" DeniedPage = "/denied.maml" style = "" header = "" footer = "" bgcolor = "#FFFFFF" bgimage = "/decor/realgranite.jpg" id = ""></maml:page>
Optional Attribute: title // becomes a <title> tag
Optional Attribute: permitted > Restricts page view to specified security group
Optional Attribute: DeniedPage
Optional Attribute: style > any style spec valid for an xhtml <body> tag
Optional Attribute: header > Automatically includes the contents of the file named in header immediately after the <body> tag.
Optional Attribute: footer > Automatically includes the contents of the file named in footer immediately before the </body> tag.
Optional Attribute: bgcolor
Optional Attribute: bgimage
Example: <page title="My page" permitted="administrator">
This tag automatically generates everything from the XML declaration and doctype (using the /system/templates/page.top.htmf template file) through the <body> tag. Also generates the </body> and </html> tags.
maml:framepageAttributes:
- title
- permited
- DeniedPage
- id
- style
Prototype: >maml:framepage title = "Molly" permited = "" DeniedPage = "/denied.maml" id = "" style = ""></maml:framepage>
Optional Attribute: title // becomes a <title> tag
Optional Attribute: permited (Restricts page view to specified security group)
Optional Attribute: DeniedPage
Example: <maml:framepage title="My page" permitted="administrator">
maml:windoidAttributes:
- value
- title
- frameColor
- frameLeft
- frameRight
- frameTop
- frameBottom
- fieldColor
- titleAlign
- backLink
- titleColor
- titleFontFamily
- titleFontSize
- titleFontWeight
- borderStyle
- background
- id
- style
Prototype: >maml:windoid value = "" title = "" frameColor = "#282c87" frameLeft = "1px" frameRight = "1px" frameTop = "24px" frameBottom = "1px" fieldColor = "#e9eaf4" titleAlign = "left" backLink = "" titleColor = "#f1e7dc" titleFontFamily = "arial, Helvetica, sans-serif" titleFontSize = "13px" titleFontWeight = "bold" borderStyle = "solid" background = "" id = "maml_windoid_3" style = ""></maml:windoid>
Optional Attribute: value
value is required if used as an empty tag
Optional Attribute: title
Optional Attribute: windoidPosition //absolute, relative
Optional Attribute: windoidTop //top in pixels
Optional Attribute: windoidLeft //leftin pixels
Optional Attribute: frameColor //colorspec
Optional Attribute: frameLeft //thickness (i.e. 2px)
Optional Attribute: frameRight //thickness
Optional Attribute: frameTop //thickness
Optional Attribute: frameBottom //thickness
Optional Attribute: fieldColor //colorspec
Optional Attribute: titleAlign [left|center|right]
Optional Attribute: titleStyle // any style spec valid for text
Optional Attribute: backLink // URL, relative or absolute
Optional Attribute: titleColor //color of windoid title
Optional Attribute: titleFontFamily //font family of title
Optional Attribute: titleFontSize //size of title
Optional Attribute: titleFontWeight //[bold|bolder|normal], etc.
Optional Attribute: borderStyle //[solid|dotted|dashed], etc.
Optional Attribute: background //add an image to windoid background
Example:
<maml:windoid title="Windoid Title">
<p>This would be windoid text.</p>
<maml:windoid title="Nested Windoid" frameColor="#FFDDFF" titleColor="#555588">
<p>And here would be more windoid text.</p>
</maml:windoid>
</maml:windoid>
<br/>
<maml:windoid title="Standalone Windoid Tag" frameColor="#DDFFDD" titleColor="#558855" value="content in a windoid’s value attribute"/>
<br/>
maml:templateAttributes:
- name
- id
- style
Prototype: >maml:template name = "" id = "" style = "" />
This tag allows you to include a template file. Template files are HTML fragment (.htmf) files stored in /system/templates. PHP Variables in template files are interpolated. Scope is local, to the template, so globals must be accessed via the $GLOBALS[ ] array.
The name attribute contains the name of the template file (without the ".htmf") which must be stored in the /system/templates/ directory.
maml:timeAttributes:
- id
- style
Prototype: >maml:time id = "" style = ""></maml:time>
Puts the current time with difference calculated
maml:dateAttributes:
- id
- style
Prototype: >maml:date id = "" style = ""></maml:date>
Puts the current time with difference calculated
maml:appendstyleAttributes:
- src
- parse
- id
- style
Prototype: >maml:appendstyle src = "" parse = "off" id = "" style = "" />
This tag allows you to include another file in the head of the resulting html
Parse Options: [link-css|link-xsl|default] default is inline in the style head element
maml:appendscriptAttributes:
- src
- id
- style
Prototype: >maml:appendscript src = "" id = "" style = ""></maml:appendscript>
This tag allows you to include a javascript inside the script element in the head.
Optional Attribute: id -- Molly will assign a unique ID.
Optional Attribute: style -- to override any default styles.
Required Attribute: src -- the location of the inclusion file, relative or absolute path.
maml:privateAttributes:
- group
- OutputCache
- protectedCache
- deniedtext
- id
- style
Prototype: >maml:private group = "all" OutputCache = "" protectedCache = "" deniedtext = "" id = "" style = ""></maml:private>
Restricts the display of text to the group specified in the group attribute.
maml:formAttributes:
- keyvalue
- table
- keyfield
- criteria
- response
- mode
- action
- name
- schema
- ownership
- owner
- permitted
- linkfield
- id
- style
Prototype: >maml:form keyvalue = "" table = "" keyfield = "" criteria = "" response = "" mode = "" action = "none" name = "maml_form_4" schema = "off" ownership = "none" owner = "" permitted = "all" linkfield = "" id = "maml_form_4" style = ""></maml:form>
Optional Attribute: keyvalue
Optional Attribute: mode [input|edit|output|signature]
Optional Attribute: action
Optional Attribute: name
Optional Attribute: schema [on|off] //automatically writes SQL when on
Required Attribute: table
Required Attribute: keyfield
Required Attribute: response //URL, relative or absolute
Example:
<maml:form table="test" response="/~rvullo/m2/test/list.maml" keyfield="age" schema="on">
Name: <maml:input type="text" name="name"/><br/>
Eye Color: <maml:input type="text" name="eyecolor"/><br/>
Age: <maml:input type="text" name="age"/><br/>
<maml:input type="submit" value="I’m a submit Button"/>
</maml:form>
maml:multipleAttributes:
- OutputCache
- TemplateCache
- uniquekey
- editinsert
- id
- style
Prototype: >maml:multiple OutputCache = "" TemplateCache = "" uniquekey = "" editinsert = "" id = "maml_multiple_5" style = ""></maml:multiple>
Wrap this around a series of fields to allow them to take advantage of multiforms.
Multiforms use javascript to dynamically generate additional fields so that many records can be input at once.
maml:fileAttributes:
- token
- name
- profile
- id
- style
Prototype: >maml:file token = "9117de63b5d10766dbc639748c6ad95d" name = "" profile = "" id = "" style = ""></maml:file>
This allows uploads for forms.
The attribute, token, is to designate what form images/files are attached so it can work with the images; imageconnections tables
Note: do not put inside of a multiform pair
maml:inputAttributes:
- type
- name
- value
- size
- selected
- id
- style
Prototype: >maml:input type = "" name = "" value = "" size = "16" selected = "" id = "maml_input_6" style = ""></maml:input>
Must be within <form></form> pair.
Required Attribute: type [text|submit|hidden|checkbox|radio|password|reset]
Optional Attribute: name
Optional Attribute: value
Optional Attribute: selected // [CHECKED] for radio andcheckbox
Example:
<maml:form table="test" response="/~rvullo/m2/test/list.maml" keyfield="age" schema="on">
Name: <maml:input type="text" name="name"/><br/>
Eye Color: <maml:input type="text" name="eyecolor"/><br/>
Age: <maml:input type="text" name="age"/><br/>
<maml:input type="submit" value="I am a submit Button"/>
</maml:form>
maml:textareaAttributes:
- cols
- rows
- name
- wrap
- wysiwyg
- id
- style
Prototype: >maml:textarea cols = "25" rows = "5" name = "" wrap = "virtual" wysiwyg = "true" id = "" style = ""></maml:textarea>
Must be within <form></form> pair.
Optional Attribute: name
Optional Attribute: cols
Optional Attribute: rows
Optional Attribute: wrap [virtual|physical|none]
Example
<maml:form table="test" response="tim.maml">
<maml:textarea name="test" rows="10"></maml:textarea>
<maml:input type="submit" value="submit"/>
</maml:form>
maml:outputAttributes:
- emptyTag
- name
- id
- style
Prototype: >maml:output emptyTag = "1" name = "" id = "" style = ""></maml:output>
Provides output of field values for autoform field labels
maml:poplistAttributes:
- name
- table
- labelfield
- valuefield
- criteria
- orderby
- size
- multiple
- selectedvalue
- blankoption
- id
- style
Prototype: >maml:poplist name = "" table = "" labelfield = "" valuefield = "" criteria = "" orderby = "" size = "" multiple = "" selectedvalue = "" blankoption = "" id = "" style = ""></maml:poplist>
DB Generated select tag
name required attribute name the resultant tag
table required attribute the table from which to fetch the values
labelfield required attribute the field containing the desired option text
valuefield required attribute the field containing the desired values
criteria required attribute the SQL WHERE clause
orderby optional attribute field name on which to sort the list
size optional attribute 1 makes a pop-up menu, >1 a select list with this many lines displayed
multiple optional attribute 'on' if you want to allow multiple selections, set this to "multiple"
selectedvalue optional attribute the name you want the select to have in your form (i.e. the name of the field into which the user's selection is to be stuffed.
blankoption optional attribute 'on' If you want an initial blank option
maml:radiolistAttributes:
- table
- field
- criteria
- orderby
- name
- seperator
- id
- style
Prototype: >maml:radiolist table = "" field = "" criteria = "" orderby = "" name = "" seperator = "" id = "" style = ""></maml:radiolist>
DB Generated set of radio buttons
maml:radiogroupAttributes:
- name
- divider
- id
- style
Prototype: >maml:radiogroup name = "" divider = "" id = "" style = ""></maml:radiogroup>
Must be within <maml:form></maml:form> pair.
name required attribute
divider optional attribute
Example:
Best <maml:radiogroup name="test">
<maml:radiobutton value="1"/>
<maml:radiobutton value="2" selected="checked"/>
</maml:radiogroup> Worst
<br/>
maml:radiobuttonAttributes:
- value
- selected
- id
- style
Prototype: >maml:radiobutton value = "" selected = "" id = "" style = ""></maml:radiobutton>
Must be within <maml:radiogroup></maml:radiogroup> pair.
otherwise use maml:input.
value Required Attribute: identify individual buttons
selected Optional Attribute: (values: [ checked | unchecked ])
maml:choiceAttributes:
- name
- iterator
- iteratorstart
- iteratorend
- iteratorselect
- id
- style
Prototype: >maml:choice name = "" iterator = "off" iteratorstart = "0" iteratorend = "100" iteratorselect = "" id = "" style = ""></maml:choice>
Must be within <maml:form></maml:form> pair.
name required attribute
Example:
Best <maml:choice name="test">
<maml:option label="test1" value="1"/>
<maml:option value="2" selected="selected">test2</maml:option>
</maml:choice> Worst
<br/>
maml:multichoiceAttributes:
- name
- size
- iterator
- iteratorstart
- iteratorend
- iteratorselect
- cache
- id
- style
Prototype: >maml:multichoice name = "" size = "" iterator = "off" iteratorstart = "0" iteratorend = "100" iteratorselect = "" cache = "" id = "" style = ""></maml:multichoice>
Must be within <maml:form></maml:form> pair.
name required attribute
Example:
Best <maml:choice name="test">
<maml:option label="test1" value="1"/>
<maml:option value="2" selected="selected">test2</maml:option>
</maml:choice> Worst
<br/>
maml:optionAttributes:
- label
- value
- selected
- OutputCache
- id
- style
Prototype: >maml:option label = "" value = "" selected = "" OutputCache = "" id = "" style = ""></maml:option>
Must be within <maml:choice></maml:choice> pair.
otherwise use maml:input.
value Required Attribute: identify individual buttons
selected Optional Attribute: (values: [ checked | unchecked ])
maml:buttonAttributes:
- name
- id
- params
- OutputCache
- style
Prototype: >maml:button name = "" id = "" params = "" OutputCache = "" style = ""></maml:button>
mimicks html custom button
name Required Attribute: name to a button tag.
parameters Optional Attribute: any parameters you can pass to a button tag.
maml:commentsAttributes:
- title
- label
- frameColor
- frameLeft
- frameRight
- frameTop
- frameBottom
- fieldColor
- titleAlign
- backLink
- titleColor
- titleFontFamily
- titleFontSize
- titleFontWeight
- borderStyle
- background
- id
- style
Prototype: >maml:comments title = "Comments" label = "Add a New Comment to This Page:" frameColor = "" frameLeft = "" frameRight = "" frameTop = "" frameBottom = "" fieldColor = "" titleAlign = "" backLink = "" titleColor = "" titleFontFamily = "" titleFontSize = "" titleFontWeight = "" borderStyle = "" background = "" id = "" style = ""></maml:comments>
A comment tag on the page will allow users of the page to make comments on the page.
Once approved through the Administration portion of the comments module (Modules page), the comments
themselves become part of the page.
maml:loginAttributes:
- color
- registration
- home
- id
- style
Prototype: >maml:login color = "#282c87" registration = "on" home = "index.maml" id = "" style = ""></maml:login>
Provides login and user authentication for your website;
Can utilize LDAP authentication via modules_core/login/login.ini
Also tied in with the security module and enables a lot of inline editing like blocks and other features.
modules_core/login/login.ini example
[Server1]
ServerType = "ldap" ; [ ldap | activedirectory ]
ServerAddress = "ldap.rit.edu"
BaseDN = "ou=people,dc=rit,dc=edu" ; the base DN for your LDAP server.
DomainSuffix = "@main.ad.rit.edu"; ; Used for type activedirectory
LdapVersion = "3"
UserNamePrefix = "ldap.rit.edu" ; Used to store system users in the registration databases
maml:httpheaderAttributes:
- value
- id
- style
Prototype: >maml:httpheader value = "" id = "" style = "" />
sends an http header
<maml:httpheader value="location:http://cnn.com" />
maml:phpinfoAttributes:
- id
- style
Prototype: >maml:phpinfo id = "" style = "" />
calls phpinfo();
maml:setvariableAttributes:
- name
- value
- OutputCache
- id
- style
Prototype: >maml:setvariable name = "" value = "" OutputCache = "" id = "" style = ""></maml:setvariable>
Allows the setting of variables.
<maml:setvariable name = "UserColor" value = "#990022" />
maml:ifAttributes:
- condition
- id
- style
Prototype: >maml:if condition = "" id = "" style = ""></maml:if>
if: conditional inclusion of stuff.
<maml:if condition="$g_ModulesDir=='modules'">
<maml:windoid title="True Stuff">
<p>True Stuff (inside an if).</p>
</maml:windoid>
<maml:else>
<maml:windoid title="False Stuff">
<p>False Stuff (inside an else).</p>
</maml:windoid>
</maml:else>
</maml:if>
maml:elseAttributes:
- id
- style
Prototype: >maml:else id = "" style = ""></maml:else>
else: conditional inclusion of stuff.
maml:setcookieAttributes:
- name
- value
- expire
- path
- domain
- secure
- id
- style
Prototype: >maml:setcookie name = "" value = "" expire = "" path = "" domain = "" secure = "" id = "" style = "" />
puts a cookie on the user's machine
<maml:setcookie name="testcookie" value="peek-a-boo" />
The name attribute is required, all other attributes are optional.
Note: cookies can not be viewed on the same page load as they are set, since they do not
exist as cookies until after the page has loaded.
maml:clearcookieAttributes:
- name
- path
- domain
- secure
- id
- style
Prototype: >maml:clearcookie name = "" path = "" domain = "" secure = "" id = "" style = "" />
Clears a cookie from the user's machine
<maml:clearcookie name="testcookie" />
The name attribute is required, all other attributes are optional.
Notes: Cookies are not cleared until after the page has loaded.
Cookies must be deleted with the same path, domain, and secure attributes as they were set with.
maml:showcookieAttributes:
- name
- id
- style
Prototype: >maml:showcookie name = "" id = "" style = "" />
echos the value of the named cookie
<maml:showcookie name="testcookie" />
Note: cookies can not be viewed on the same page load as they are set, since they do not
exist as cookies until after the page has loaded.
maml:blockAttributes:
- edit
- permitted
- type
- width
- height
- blocktype
- blockid
- id
- controls
- OutputCache
- BlockCache
- style
Prototype: >maml:block edit = "no" permitted = "" type = "text" width = "500px" height = "300px" blocktype = "" blockid = "" id = "maml_block_8" controls = "" OutputCache = "" BlockCache = "" style = ""></maml:block>
Blocks are potentially editable blocks of information stored in a database.
To create a block, you must first create the block through the blocks module (Modules, Administration under blocks option)
to get a blockid. Next, place that id in a block tag. Anyone with the permitted status, once logged in,
will see an "edit" button on pages with blocks. Upon selecting that button, the user can edit the text
directly on the page - without ever having to dig through sourcecode!
maml:blocklistAttributes:
- edit
- insert
- permitted
- type
- width
- height
- blocktype
- blocktitle
- id
- style
Prototype: >maml:blocklist edit = "no" insert = "no" permitted = "" type = "text" width = "320px" height = "140px" blocktype = "" blocktitle = "" id = "" style = ""></maml:blocklist>
Potentially editable list of blocks of information stored in a database.
A list of blocks with the same blocktype; A block that lets you do a list of editable blocks with the same title.
maml:chatmessagesAttributes:
- room
- count
- id
- style
Prototype: >maml:chatmessages room = "" count = "" id = "" style = ""></maml:chatmessages>
<maml:tag> is a generic class for MAML tags so that they can
inherit methods such as id(). Undocumented tag classes inherit this documentation.
maml:calendarAttributes:
- id
- style
Prototype: >maml:calendar id = "" style = "" />
An empty calendar tag, <maml:calendar />, will produce a calendar in that location on the page.
The user of the calendar can scroll forward or backward through the months. Additionally, the user can add,
edit, and delete events. These days on which events occur are noted by a different colored cell color
on the specified date.
maml:forumAttributes:
- topBGColor
- topLinkColor
- topTextColor
- borderColor
- bottomBGColor
- bottomTextColor
- bottomLinkColor
- columnHeadingBGColor
- columnHeadingTextColor
- columnHeadingLinkColor
- contentBGColor
- contentTextColor
- contentLinkColor
- columnFooterBGColor
- columnFooterTextColor
- columnFooterLinkColor
- width
- editablePost
- v_templatePath
- v_forumModulePath
- v_forumModuleAdminPath
- v_adminLink
- v_footerAdminLink
- v_moderatorAdminLink
- v_categoryName
- v_groupName
- v_groupDescription
- v_topicSubject
- v_topicAuthor
- v_topicReplies
- v_topicLastActive
- v_postAuthor
- v_postDate
- v_postSubject
- v_postContent
- v_removeModeratorURL
- v_addModeratorURL
- v_levelName
- v_permissionGroupID
- v_pixelImg
- v_breadCrumb
- v_colorQueryString
- id
- style
Prototype: >maml:forum topBGColor = "" topLinkColor = "" topTextColor = "" borderColor = "" bottomBGColor = "" bottomTextColor = "" bottomLinkColor = "" columnHeadingBGColor = "" columnHeadingTextColor = "" columnHeadingLinkColor = "" contentBGColor = "" contentTextColor = "" contentLinkColor = "" columnFooterBGColor = "" columnFooterTextColor = "" columnFooterLinkColor = "" width = "" editablePost = "" v_templatePath = "/home/course/molly/public_html/modules/aux/forum/templates/" v_forumModulePath = "/modules/aux/forum" v_forumModuleAdminPath = "/modules/aux/forum/admin" v_adminLink = "" v_footerAdminLink = "" v_moderatorAdminLink = "" v_categoryName = "" v_groupName = "" v_groupDescription = "" v_topicSubject = "" v_topicAuthor = "" v_topicReplies = "" v_topicLastActive = "" v_postAuthor = "" v_postDate = "" v_postSubject = "" v_postContent = "" v_removeModeratorURL = "" v_addModeratorURL = "" v_levelName = "" v_permissionGroupID = "" v_pixelImg = "
" v_breadCrumb = "Forum Home" v_colorQueryString = "" id = "" style = ""></maml:forum>
<maml:tag> is a generic class for MAML tags so that they can
inherit methods such as id(). Undocumented tag classes inherit this documentation.
maml:rssAttributes:
- href
- template
- cachelife
- id
- style
Prototype: >maml:rss href = "" template = "rss.default" cachelife = "" id = "" style = ""></maml:rss>
Allows for the incorporation of RSS feeds.
<maml:rss href="http://www.bbc.co.uk/syndication/feeds/news/ukfs_news/uk/rss091.xml" template="rss.default.htmf" cachelife="24" />
maml:syndicateAttributes:
- itemURL
- channelURL
- searchType
- startSearchDate
- endSearchDate
- startSearchID
- endSearchID
- channelTitle
- channelDescription
- DBTable
- searchTypeColumn
- searchIDColumn
- searchDateColumn
- itemTitleColumn
- itemDescriptionColumn
- id
- style
Prototype: >maml:syndicate itemURL = "http://molly.rit.edu/modules/core/syndication/itemURL.maml" channelURL = "http://molly.rit.edu/modules/core/syndication/channelURL.maml" searchType = "" startSearchDate = "" endSearchDate = "" startSearchID = "" endSearchID = "" channelTitle = "Channel Title" channelDescription = "" DBTable = "molly_nuggets" searchTypeColumn = "nuggettype" searchIDColumn = "nugget_id" searchDateColumn = "nuggetdate" itemTitleColumn = "nuggettitle" itemDescriptionColumn = "nuggettext" id = "" style = ""></maml:syndicate>
Attributes used to set URLs that are used with the syndicate tag.
Optional Attribute: itemURL -- The URL that will show an Item from the XML RSS feed. The default value of this is an URL to itemURL.maml that is found in the syndication module folder
Optional Attribute: channelURL -- The URL that will show a Channel from the XML RSS feed. The default value of this is an URL to channelURL.maml that is found in the syndication module folder
Attributes used to query the database for information.
Optional Attribute: searchType -- The type of document we are searching with in the database for the RSS feed. Examples of this are "doc", "news", ...
Optional Attribute: startSearchDate -- A starting date to search the database with to find the data for the RSS feed
Optional Attribute: endSearchDate -- An ending date to search the database with to find the data for the RSS feed
Optional Attribute: startSearchID -- A starting ID to search the database with to find the data for the RSS feed
Optional Attribute: endSearchID -- An ending ID to search the database with to find the data for the RSS feed
Attributes used to explain the channel of the RSS feed.
Optional Attribute: channelTitle -- The channel title for the RSS feed. The default value of this is "Channel Title".
Optional Attribute: channelDescription -- The channel description for the RSS feed.
Attributes used to define what Table and what columns should be used to get the information for the RSS feed.
Optional Attribute: DBTable -- The database table used when searching the database. The default value of this is "nuggets"
Optional Attribute: searchTypeColumn -- The database column used for the type of the data held. The default of this is "nuggettype"
Optional Attribute: searchIDColumn -- The database column used for the ID of the data held. The default of this is "nugget_id"
Optional Attribute: searchDateColumn -- The database column used for the Date of the data held. The default of this is "nuggetdate"
Optional Attribute: itemTitleColumn -- The database column used for the Title of each row of data (the Item Title). The default of this is "nuggettitle"
Optional Attribute: itemDescriptionColumn -- The database column used for the Description of each row of data (the Item Description). The default of this is "nuggettext"
Example:
<maml:syndicate searchType="docs" startSearchID="1" endSearchID="5" channelTitle="Channel Title" channelDescription="Channel Description here..">RSS FEED</maml:syndicate>
Example explanation:
This tag will produce an RSS feed with information from the nuggets database (default database since DBTable was not used). All of the data that is put in the RSS feed will be of "doc" type and have an ID between 1 and 5. The title of the channel will be "Channel Title" and the description of this channel will be "Channel Description here..."
"RSS FEED" will be a link that the user can click on. When clicked, a new page will be displayed with the XML that is created for this RSS feed.
mage:canvasAttributes:
- width
- height
- color
- id
- style
Prototype: >mage:canvas width = "300" height = "300" color = "#CCCCFF" id = "" style = ""></mage:canvas>
Creates an empty SVG document.
Example:
<mage:canvas width="300" height="300" color="#FFCCCC">
</mage:canvas>
mage:xycoordAttributes:
- title
- xlabel
- ylabel
- xorigin
- yorigin
- xlength
- ylength
- xmax
- ymax
- xmin
- ymin
- yTickCount
- xTickCount
- _yPixelVal
- _xPixelVal
- fontheight
- fontcolor
- axiscolor
- axisstrokewidth
- _xendpoint
- _yendpoint
- _origin
- id
- style
Prototype: >mage:xycoord title = "" xlabel = "x axis" ylabel = "y axis" xorigin = "55" yorigin = "50" xlength = "200" ylength = "200" xmax = "" ymax = "" xmin = "0" ymin = "0" yTickCount = "" xTickCount = "" _yPixelVal = "" _xPixelVal = "" fontheight = "12" fontcolor = "black" axiscolor = "black" axisstrokewidth = "0.5" _xendpoint = "" _yendpoint = "" _origin = "" id = "" style = ""></mage:xycoord>
Draws coordinate axis on the X and Y plane. Tags which inherit this class are:
mage:scatterplot
mage:linegraph
mage:histogram
mage:pointAttributes:
- xvalue
- yvalue
- id
- style
Prototype: >mage:point xvalue = "" yvalue = "" id = "" style = ""></mage:point>
mage:xvalueAttributes:
- id
- style
Prototype: >mage:xvalue id = "" style = ""></mage:xvalue>
mage:yvalueAttributes:
- id
- style
Prototype: >mage:yvalue id = "" style = ""></mage:yvalue>
mage:scatterplotAttributes:
- _data
- color
- outlineColor
- xPoint1
- yPoint1
- title
- xlabel
- ylabel
- xorigin
- yorigin
- xlength
- ylength
- xmax
- ymax
- xmin
- ymin
- yTickCount
- xTickCount
- _yPixelVal
- _xPixelVal
- fontheight
- fontcolor
- axiscolor
- axisstrokewidth
- _xendpoint
- _yendpoint
- _origin
- id
- style
Prototype: >mage:scatterplot _data = "Array" color = "#FFFFFF" outlineColor = "#000000" xPoint1 = "" yPoint1 = "" title = "" xlabel = "x axis" ylabel = "y axis" xorigin = "55" yorigin = "50" xlength = "200" ylength = "200" xmax = "" ymax = "" xmin = "0" ymin = "0" yTickCount = "" xTickCount = "" _yPixelVal = "" _xPixelVal = "" fontheight = "12" fontcolor = "black" axiscolor = "black" axisstrokewidth = "0.5" _xendpoint = "" _yendpoint = "" _origin = "" id = "" style = ""></mage:scatterplot>
Draws a series of points on the coordinate plane.
Example:
<mage:scatterplot title="This is a scatterplot" xorigin="650" color="#FF9900" outlineColor = "#000000">
<mage:point>
<mage:xvalue>150</mage:xvalue>
<mage:yvalue>10</mage:yvalue>
</mage:point>
<mage:point>
<mage:xvalue>120</mage:xvalue>
<mage:yvalue>5</mage:yvalue>
</mage:point>
<mage:point>
<mage:xvalue>119</mage:xvalue>
<mage:yvalue>100</mage:yvalue>
</mage:point>
</mage:scatterplot>
mage:linegraphAttributes:
- _data
- color
- outlineColor
- xPoint1
- yPoint1
- title
- xlabel
- ylabel
- xorigin
- yorigin
- xlength
- ylength
- xmax
- ymax
- xmin
- ymin
- yTickCount
- xTickCount
- _yPixelVal
- _xPixelVal
- fontheight
- fontcolor
- axiscolor
- axisstrokewidth
- _xendpoint
- _yendpoint
- _origin
- id
- style
Prototype: >mage:linegraph _data = "Array" color = "#FFFFFF" outlineColor = "#000000" xPoint1 = "" yPoint1 = "" title = "" xlabel = "x axis" ylabel = "y axis" xorigin = "55" yorigin = "50" xlength = "200" ylength = "200" xmax = "" ymax = "" xmin = "0" ymin = "0" yTickCount = "" xTickCount = "" _yPixelVal = "" _xPixelVal = "" fontheight = "12" fontcolor = "black" axiscolor = "black" axisstrokewidth = "0.5" _xendpoint = "" _yendpoint = "" _origin = "" id = "" style = ""></mage:linegraph>
Draws a series of points connected by a line on the coordinate plane.
Example:
<mage:linegraph title="Population vs Year" xlength="450" ylength="250" xorigin="100" yorigin="450" yTickCount="10" xTickCount="5" ymin="200000" xmin="1990" ymax="300000" xmax="2000">
<mage:point>
<mage:xvalue>1990</mage:xvalue>
<mage:yvalue>200000</mage:yvalue>
</mage:point>
<mage:point>
<mage:xvalue>1992</mage:xvalue>
<mage:yvalue>220000</mage:yvalue>
</mage:point>
<mage:point>
<mage:xvalue>1994</mage:xvalue>
<mage:yvalue>240000</mage:yvalue>
</mage:point>
<mage:point>
<mage:xvalue>1996</mage:xvalue>
<mage:yvalue>250000</mage:yvalue>
</mage:point>
<mage:point>
<mage:xvalue>1998</mage:xvalue>
<mage:yvalue>255000</mage:yvalue>
</mage:point>
<mage:point>
<mage:xvalue>2000</mage:xvalue>
<mage:yvalue>300000</mage:yvalue>
</mage:point>
</mage:linegraph>
mage:histogramAttributes:
- _data
- _bars
- _slicecolors
- _barWidth
- legend
- barTitle1
- barValue1
- title
- xlabel
- ylabel
- xorigin
- yorigin
- xlength
- ylength
- xmax
- ymax
- xmin
- ymin
- yTickCount
- xTickCount
- _yPixelVal
- _xPixelVal
- fontheight
- fontcolor
- axiscolor
- axisstrokewidth
- _xendpoint
- _yendpoint
- _origin
- id
- style
Prototype: >mage:histogram _data = "Array" _bars = "0" _slicecolors = "Array" _barWidth = "0" legend = "on" barTitle1 = "" barValue1 = "" title = "" xlabel = "x axis" ylabel = "y axis" xorigin = "55" yorigin = "50" xlength = "200" ylength = "200" xmax = "" ymax = "" xmin = "0" ymin = "0" yTickCount = "" xTickCount = "" _yPixelVal = "" _xPixelVal = "" fontheight = "12" fontcolor = "black" axiscolor = "black" axisstrokewidth = "0.5" _xendpoint = "" _yendpoint = "" _origin = "" id = "" style = ""></mage:histogram>
Draws a series of bars on the coordinate plane.
Example:
<mage:histogram xorigin="700" yorigin="400" title="Americas Favorite Sports" legend="on">
<mage:bar>
<mage:title>Tennis</mage:title>
<mage:value>100</mage:value>
</mage:bar>
<mage:bar>
<mage:title>Golf</mage:title>
<mage:value>25</mage:value>
</mage:bar>
<mage:bar>
<mage:title>Baseball</mage:title>
<mage:value>25</mage:value>
</mage:bar>
<mage:bar>
<mage:title>Football</mage:title>
<mage:value>50</mage:value>
</mage:bar>
</mage:histogram>
mage:barAttributes:
- title
- value
- id
- style
Prototype: >mage:bar title = "" value = "" id = "" style = ""></mage:bar>
mage:piechartAttributes:
- centerx
- centery
- radius
- stroke
- strokewidth
- _fill
- _diameter
- fontheight
- fontcolor
- legend
- ChartFontHeight
- _slicecolors
- pieData
- id
- style
Prototype: >mage:piechart centerx = "170" centery = "20" radius = "70" stroke = "black" strokewidth = "1.5" _fill = "none" _diameter = "" fontheight = "12" fontcolor = "black" legend = "on" ChartFontHeight = "12" _slicecolors = "Array" pieData = "Array" id = "" style = ""></mage:piechart>
Creates a circle.
Example:
<mage:piechart centery="100">
<mage:pieslice>
<mage:title>None</mage:title>
<mage:value>10</mage:value>
</mage:pieslice>
<mage:pieslice>
<mage:title>Macintosh</mage:title>
<mage:value>120</mage:value>
</mage:pieslice>
<mage:pieslice>
<mage:title>Linux</mage:title>
<mage:value>57</mage:value>
</mage:pieslice>
<mage:pieslice>
<mage:title>Windows</mage:title>
<mage:value>75</mage:value>
</mage:pieslice>
<mage:pieslice>
<mage:title>Unix</mage:title>
<mage:value>101</mage:value>
</mage:pieslice>
<mage:pieslice>
<mage:title>Palm OS</mage:title>
<mage:value>11</mage:value>
</mage:pieslice>
</mage:piechart>
mage:piesliceAttributes:
- title
- value
- id
- style
Prototype: >mage:pieslice title = "" value = "" id = "" style = ""></mage:pieslice>
mage:titleAttributes:
- id
- style
Prototype: >mage:title id = "" style = ""></mage:title>
mage:valueAttributes:
- id
- style
Prototype: >mage:value id = "" style = ""></mage:value>
mage:paragraphAttributes:
- mode
- x
- y
- leading
- fontsize
- color
- width
- id
- svgParagraph
- style
Prototype: >mage:paragraph mode = "auto" x = "0" y = "0" leading = "1" fontsize = "12" color = "black" width = "500" id = "mage_paragraph_9" svgParagraph = "" style = ""></mage:paragraph>
Word-wrap SVG Text.
maml:slidecommentsAttributes:
- title
- label
- id
- style
Prototype: >maml:slidecomments title = "Comments" label = "Add a New Comment to This Page:" id = "" style = ""></maml:slidecomments>
This tag allows you to add a list of comments and take in new input on any page.