Creating a property tag
A property tag is used to display various fields and metadata from content items and site areas.
About this task
This is the format of a property tag:
[Property field=" " context=" " type=" " name=" " key=" " format=" " link=" " separator=" " htmlencode=" " awareness=" " ifEmpty=" " include=" " restrict=" " resolve=" " start=" " end=" " ]
To create a property tag:
Procedure
What to do next
Tag parameters | Details |
---|---|
name=" " | You must specify the name of the item being referenced if the context="selected". If you specify name="./itemName", the actual path is not resolved until the item is rendered. This takes slightly longer to resolve than specifying the path to the item. |
format=" " | This parameter is optional and can only be used
with some element types:
|
separator=" " | This is used when referencing a property that returns multiple results. For example, to add a line break between each result, you would use separator="<br>" . If not defined, a comma is placed between each result when rendered. |
htmlencode=" " | If htmlencode="true" any reserved HTML characters
is converted into character entities. For example, '<' is converted
to '<'. 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 by the cmpnt.htmlEncodeDefault property in the WCM WCMConfigService service is used. By default, this property is set to true. |
awareness=" " | If awareness="true" then
user names are displayed using the people awareness features. This
feature 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® 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 only works 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. |
include=" " | Used only with field=categories. Determines which level of a taxonomy to display:
For example, if an item is profiled with a category of Sport, and include=descendants, then all the descendants of "sport" would also be displayed. |
restrict=" " | Used only with field=library/categories. Enter a list of categories separated by commas to only return results for the categories specified in the list. For example, restrict="library/red, library/green" only displays profile details of items profiled with the categories of red or green. If no library is specified, the default library is used. |
resolve=" " | This determines which type of access to resolve
to when rendering access level properties:
|
start=" " end=" " |
The start and end attributes are used to wrap the data returned by a tag within other tags, such as HTML. These attributes are not mandatory. |
Not all double-byte character sets support extended ASCII. To use tags such as " " you need to replace "&" with "&".
separator="&nbsp;&nbsp;"