Documentation Center

Configuring a custom property to be searched in the slide-out navigation Activities screen

By default, the slide-out navigation Activities screen lets users search in a fixed set of Workflow Activity properties. If you have a custom property that you would also like the search interface to search in, you can add it to the set of searchable properties to make it searchable as well, and to make the property name appear in the tooltip of the search box.

Procedure

  1. Create a GUI extension that adds one or more custom fields to the Activities lists.
  2. Add a new field to the array of searchable fields (designated as Tridion.Web.UI.Editors.CME.Commands.WorkflowActivitiesPage.BaseShowActivitiesList.FILTER_SCOPE) by including the following call in your extension:
    Tridion.Web.UI.Editors.CME.Commands.WorkflowActivitiesPage.BaseShowActivitiesList.FILTER_SCOPE.push(
    { 'xPath': 'XPATH', 'Label': 'LABEL' }
    )

    where XPATH is an XPath string that points to the XML node or nodes whose text values are to be matched against (for example, @myCustomAttribute), and LABEL is a localized label that you want to appear in the tooltip.

  3. Deploy your GUI extension and test it to verify your changes.