Iosphere
-
-
- -
-
Software
----
WebChat!
iWeb Server
.Edit
----

Services
----
Web Development
WAP Development

Articles
----
Net Tips
In Perspective

Community
----

Forums

Resources
----

HTML Reference

General Interest
----

Updates
Links

Key:
LinkOff-site Link
EmailEmail Link
HintAdditional Information
DownloadDownload
Private AreaPrivate Area (requires login)
-
Home Home -> Iosphere -> Documentation -> Property Reference -> Document: Document Object Printer Version - Hide navigation bars Printer Version

Document: Document Object

Summary

The document object exposes the properties for a file.

Object: Document
Example Usage: %%Document.Title%%

Property Explanation Example
Author Inserts the author of the document, as defined on the properties tab of the editor.
Body Inserts the main body of the document in to the template - this is the stuff you write in the main editor.
Created fmtInserts the date and time that the document was created. The fmt argument specifies how the date and time should be formatted.

The format specifiers are as follows:

cDisplays the date and time using a short format.
dDisplays the day as a number without a leading zero (1-31).
ddDisplays the day as a number with a leading zero (01-31).
dddDisplays the day as an abbreviation (Sun-Sat).
ddddDisplays the day as a full name (Sunday-Saturday).
dddddDisplays the date using a short format.
ddddddDisplays the date using a long format.
mDisplays the month as a number without a leading zero (1-12). If the m specifier immediately follows an h or hh specifier, the minute rather than the month is displayed.
mmDisplays the month as a number with a leading zero (01-12). If the mm specifier immediately follows an h or hh specifier, the minute rather than the month is displayed.
mmmDisplays the month as an abbreviation (Jan-Dec).
mmmmDisplays the month as a full name (January-December).
yyDisplays the year as a two-digit number (00-99).
yyyyDisplays the year as a four-digit number (0000-9999).
hDisplays the hour without a leading zero (0-23).
hhDisplays the hour with a leading zero (00-23).
nDisplays the minute without a leading zero (0-59).
nnDisplays the minute with a leading zero (00-59).
sDisplays the second without a leading zero (0-59).
ssDisplays the second with a leading zero (00-59).
tDisplays the time using a short format.
ttDisplays the time using a long format.
am/pmUses the 12-hour clock for the preceding h or hh specifier, and displays 'am' for any hour before noon, and 'pm' for any hour after noon. The am/pm specifier can use lower, upper, or mixed case, and the result is displayed accordingly.
a/pUses the 12-hour clock for the preceding h or hh specifier, and displays 'a' for any hour before noon, and 'p' for any hour after noon. The a/p specifier can use lower, upper, or mixed case, and the result is displayed accordingly.
/ Displays the date separator character.
: Displays the time separator character.
'xx'/"xx" Characters enclosed in single or double quotes are displayed as is, and do not affect formatting.
Child[n] Returns another Document object for the child that is number n in the sequence. The first child is 0. You may use this object to retrieve the properties of a child document from a parent. %%Document.Child[0].Title%% - retrieves the title of the first child object.
Keywords Inserts the keywords of the document, as defined on the properties tab of the editor.
Last Updated fmtInserts the date and time that the document was last updated. The fmt argument specifies how the date and time should be formatted. See Created for the format specifiers.
Title Inserts the title of the document, as defined in the main project tree.
Next Retrieves the Document object of the next object in the project tree.
Prev Retrieves the Document object of the previous object in the project tree.
Root Retrieves the Document object of the root object in the project tree (the home page).
Parent Retrieves the Document object of the parent object in the project tree (the parent page).

In addition to this the object has other user-defined properties, as defined on the 'Properties' tab of the editor.

 

-