Displaying an item's history

The history component tag is used to display an item's history. This tag can be added to presentation templates, element designs and component designs. Any date and time displayed are based on the timezone of the server delivering the content, not the timezone of the computer you are using to view the Web site.

<historycmpnt type=" " context=" " name=" " field=" " format=" " awareness=" " htmlencode=" " start=" " end=" " />
<historycmpnt Opens a history component tag.
type=" " This determines where the workflow field is being referenced from. Either "site", "sitearea", or "content".
context=" " This determines which item is being referenced.
Selected
Refers to a particular item as specified in the name attribute below.
Current
This will reference the component from the current site, site area or content file that is being browsed by the user.
AutoFill
The component being referenced will be determined by the search parameters of a menu, navigator or taxonomy component.
name=" " Enter the name and library of the item being referenced. For example, name="library/item" . If no library is specified, the library specified in the URL of the current page is used. This is not used if context=current or context=autofill.
field=" " The following details can be displayed using the field parameter:
lastmodified
Displays the last modified date and the last change message.
lastmodifieddate
Displays the last modified date.
creation
Displays the creation date.
lastmodifier
Displays the name of the user who last modified the item.
creator
Displays the name of the user who created the item.
format=""
When referencing number or date elements:
In this case, the format is used to specify the display format of dates and numbers. The following formats can be defined when displaying dates:
  • format="DATE_SHORT"
  • format="DATE_MEDIUM"
  • format="DATE_LONG"
  • format="DATE_FULL"
  • format="DATE_TIME_SHORT"
  • format="DATE_TIME_MEDIUM"
  • format="DATE_TIME_LONG"
  • format="DATE_TIME_FULL"
  • format="TIME_SHORT"
  • format="TIME_MEDIUM"
  • format="TIME_LONG"
  • format="TIME_FULL"
  • format="relative" (The relative date will be displayed as either "today", "yesterday" or the number of days ago.)
You can also set user-defined formats for both dates and numbers.
When referencing user details:
When formatting user details, the format parameter is used to define which LDAP parameter to use when displaying user details. For example:
  • format="cn" is used to display the common name.
  • format="dn" is used to display the distinguished name.
awareness=" " If awareness="true" then user names are displayed using the people awareness features. These features displays user names as hyperlinks that allow users to contact people with whom they might want to work. Wherever person links appear, users can click the link to display a menu of actions for collaborating (contacting and working) with the person named by the link. If you, as administrator, have also configured an IBM® Lotus® Sametime® server to work with WebSphere Portal, person links indicate whether a person is active, away, offline, or in a Do Not Disturb state.

People awareness will only work in content rendered using either a local or remote rendering portlet.

If not specified, then awareness="false" and people awareness is not used.

htmlencode=" " If htmlencode="true" any reserved HTML characters in "creator" or "last modifier" will be converted into character entities. For example, '<' will be converted to '&lt;'. This is useful if you would like to prevent users adding malicious code, or if you want to prevent users changing the look and feel of their text using HTML.
If not specified, the default setting specified in the WCMConfigService.properties file located in the was_profile_root/PortalServer/wcm/config/ directory is used. By default, this is set to "true":
cmpnt.htmlEncodeDefault=true
start=" "

end=" "

The start and end attributes are used to wrap the data returned by a Web content tag within other tags, such as HTML. These attributes are not mandatory.
/> Closes the tag.