Displaying identification details for an item

The ID component tag is used to display the ID details of sites, site areas or content items. This tag can be added to presentation templates, element designs and component designs.

<idcmpnt type=" " context=" " name=" " field=" " separator=" " format=" " ifEmpty=" " awareness=" " htmlencode=" " start=" " end=" " />
<idcmpnt Opens an ID component tag.
type=" " This determines where the ID is being referenced from. Either "site", "sitearea", "content" or "user".
context=" " This determines which item is being referenced.
Refers to a particular item as specified in the name attribute below.
This will reference the component from the current site, site area or content file that is being browsed by the user.
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=" " Enter the IDField you wish to display.
  • name
  • title
  • description
  • authors
  • owners
  • ID
separator=" " Only used with field=authors or field=owners. Used to separate each listed author or owner. For example, separator=", "
format=" "
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.
Maximum character length:
You can also specify a maximum number of characters to display by using this format:
  • format="length:number_of_characters"
For example, to display a maximum of ten characters you would specify the following parameter:
  • format="length:10"
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.

ifEmpty=" " Enter some text to display if no result is returned by the tag. If not specified, nothing is displayed if no result is returned by the tag.
htmlencode=" " If htmlencode="true" any reserved HTML characters in the fields listed above 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":
Note: Double-byte character sets

Not all double-byte character sets support extended ASCII. To use tags such as "&nbsp;" you will need to replace "&" with "&amp;".

For example:
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.