Creating an attribute resource tag | HCL Digital Experience
You use the attribute resource tag to define the information that is returned by a search query.
About this task
The format of an attribute resource tag:
[attributeResource attributeName="parameter" separator=" " format=" "]
To create an attribute resource tag:
Procedure
- Click Insert a Tag from a presentation template or element design field. The Tag Helper dialog opens.
- Select attribute resource as the tag type.
- Click OK to add the tag to your navigator design.
What to do next
Tag parameters | Details |
---|---|
attributeName=authoringtemplate |
The name of the authoring template, if available, that was used to create the content item. |
attributeName=author |
The name or names of the authors of the content item, if any are defined. If there is more than one author, then they are rendered with the string specified in the optional separator attribute between each value. |
attributeName=category |
The categories of the content item if any are defined. If there is more than one category, then they are rendered with the string specified in the optional separator attribute between each value. |
attributeName=contentid |
The ID of the content item. |
attributeName=contentpath |
The path, but excluding the server address, port, or servlet
context (/wps/wcm ), for this search result. |
attributeName=date |
The value of the date field from the SIAPI result. The format of the date can be specified by using the optional format attribute. See the Javadoc HTML documentation for SimpleDateFormat in the Java SDK for details. |
attributeName=description |
The description of the content item. |
attributeName=effectivedate |
The effective date of the content item. The format of the date can be specified by using the optional format attribute. See the Javadoc HTML documentation for SimpleDateFormat in the Java SDK for details. |
attributeName=expirationdate |
The expiration date of the content item. The format of the date can be specified by using the optional format attribute. See the Javadoc HTML documentation for SimpleDateFormat in the Java SDK for details. |
attributeName=keywords |
The keywords of the content item if any are defined. If there is more than one keyword, then they are rendered with the string specified in the optional separator attribute between each value. |
attributeName=lastmodifieddate |
The last modified date of the content item. The format of the date can be specified by using the optional format attribute. See the Javadoc HTML documentation for SimpleDateFormat in the Java SDK for details. |
attributeName=modifier |
The name of the last person to modify the content item. |
attributeName=name |
The name of the content item. |
attributeName=namelink |
This parameter assembles a complete link that is based on the name of the item that is being returned. |
attributeName=owner |
The name or names of the owners of the content item, if any are defined. If there is more than one author, then they are rendered with the string specified in the optional separator attribute between each value. |
attributeName=parentcontentpath |
This parameter is used to return the content path, but excluding
the server address, port, or servlet context for the parent content item, of this
search result. For example: /wps/wcm This parameter is valid when the search results include a link to a file resource element in the parent content item. The parameter is used to give context to the attached file. When the search result is not for an attached file in a file resource element, this value is an empty string. |
attributeName=relevance |
The relevance "score" for this search result from the search engine. |
attributeName=summary |
The summary of the content item as generated by Portal Search. |
attributeName=title |
This parameter is the title of a content item. |
attributeName=titlelink |
This parameter assembles a complete link that is based on the title of the item that is being returned. |
attributeName=url |
Displays the URL of a content item. |
format=" " |
This parameter is optional and can be used only with some
parameter types:
|
separator="
" |
Enter text or code to be used to separate multiple search
results. For example: separator=" - " |