Download The Console Configuration File

Transcript
Chapter 14 Web Publishing and Access
Field Type
Description
Default Format
BACK-TIME
Hard in-time of the story, %M:%S
in seconds
CUME-TIME
Hard out-time of the story, %M:%S
in seconds
If you use field names in the field IDs without creating an optional format
string, default formats for the field types, as listed in the previous table’s
“Default Format” column, are used.
Time and Date Field Example
For instance, you decide to include a story creation date in the HTML
template. Instead of using defaults provided for the CREATE-DATE field
(%D %T - date as %m/%d/%y and time as %h:%m:%s), you want the
creation date information to appear differently.
1. Choose the following date and time elements:
•
%a – Abbreviated weekday name
•
%B – Full month name
•
%d – Day of month (01 - 31)
•
%Y – Year as ccyy
•
%r – Time as %I:%M:%S [AM|PM]
2. Enter elements in the optional format string, enclosing the string
within quotes.
The field_ID story entity reference looks like this:
&f-create-date;“%a %B %d %Y %r”
The field_ID is embedded in HTML format tags. If the HTML
export template is applied, the entry looks like this:
<b>CREATE-DATE:</b>&f-create-date;“%a %B %d %Y %r”
Data from the field would appear on the page similar to this:
CREATE-DATE: Sat July 10 2004 5:30:45 PM
554