+

Search Tips   |   Advanced Search

Create an attribute resource tag

Use the attribute resource tag to define the information returned by a search query.

    [attributeResource attributeName="parameter" separator=" " format=" "]

To create an attribute resource tag, click...

Select attribute resource as the tag type and click OK.


What to do next

Once you add the tag to the design, we can also add the following parameters to the tag:

    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 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 using the optional format attribute. See Javadoc for SimpleDateFormat.
    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 using the optional format attribute. See Javadoc for SimpleDateFormat.
    attributeName=expirationdate The expiration date of the content item. The format of the date can be specified using the optional format attribute. See Javadoc for SimpleDateFormat.
    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 using the optional format attribute. See Javadoc for SimpleDateFormat.
    attributeName=modifier The name of the last person to modify the content item.
    attributeName=name The name of the content item.
    attributeName=namelink Assemble a complete link based on the name of the item being returned.
    attributeName=owner The name or names of our 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 Return the content path excluding the server address, port, or Servlet context for the parent content item of this search result. For example: /wps/wcm

    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 The title of a content item.
    attributeName=titlelink Assemble a complete link based on the title of the item being returned.
    attributeName=url Displays the URL of a content item.
    format=" " Optional and can be used only with some parameter types:

      When referencing date elements:
      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="DATE_SHORT_TIME_MEDIUM"
      • format="DATE_SHORT_TIME_LONG"
      • format="DATE_SHORT_TIME_FULL"
      • format="DATE_MEDIUM_TIME_SHORT"
      • format="DATE_MEDIUM_TIME_LONG"
      • format="DATE_MEDIUM_TIME_FULL"
      • format="DATE_LONG_TIME_SHORT"
      • format="DATE_LONG_TIME_MEDIUM"
      • format="DATE_LONG_TIME_FULL"
      • format="DATE_FULL_TIME_SHORT"
      • format="DATE_FULL_TIME_MEDIUM"
      • format="DATE_FULL_TIME_LONG"
      • format="RELATIVE" (Displayed as either "today", "yesterday" or the number of days ago.)
      • format="MILLIS" (Milliseconds since Midnight, January 1, 1970 GMT)

      We can also set user-defined formats for dates: Set parameters to format dates

      When referencing number elements:
      We can also set user-defined formats for numbers: Note on formatting numbers
    separator=" " Enter text or code to be used to separate multiple search results. For example: separator=" - "


Parent Create web content tags