1. Views

Configure how search results display

When configuring a Search component, you can enable one or more views in the left pane Views section of the component details page. Each view offers options that define how search results are displayed. Depending on the selected view, some or all of the following tabs are available:

Note

To display the selected views on the page, open the Search component details page and, in the General section of the left pane, click Functionality In the Usage section, click the Page option.

Template tab

A template is used to display search results. Each view has a number of templates that alter the layout of text, images, and other content within search results. The following sections list the templates associated with each view and, if a template includes image renditions, which renditions are used. To use a template other than the default one, select it.

Grid

This view has the following templates and renditions.

TemplatesRenditions
  • Image left data right
  • Image right data left
  • Content
ThumbnailStoryboardAnimated_thumbnail
  • Data on top of image
  • Wide image
BigthumbnailAnimated_thumbnail
  • Data only
  • Grid
  • Compact
N/A
Inline preview

This view has the following templates and renditions.

TemplatesAppearanceRenditions
Image to the left fields to the rightdefault-template.pngPreview
Fields to the right as a light overlaycontent-template.png
Image and fields to the right as a drawerdrawer-template.png
Table

This view has the following templates and renditions.

TemplatesRenditions
  • Table
  • Table card with image
ThumbnailStoryboard
  • Table card without image
  • Table without image
N/A
List

This view has the following templates and renditions.

TemplatesRenditions
  • List
  • List as a card with image
ThumbnailStoryboardAnimated_thumbnail
  • List as a card
N/A
Calendar

This view has the following templates and renditions.

TemplatesRenditions
  • Calendar
ThumbnailStoryboard
Pivot table

This view has the following templates and renditions.

TemplatesRenditions
  • Pivot table
N/A
Chart

This view has the following templates and renditions.

Image and icon tab

To set an image on the search results, in the Image list, select one of the following options:

  • Thumbnail - displays a thumbnail of the entity if it is available.
  • Icon - displays icons instead of thumbnails, as configured in the Icon and color list.

Icon and color

To configure the style and color of an icon, in the Icon and color list, select one of the following options:

  • None - uses the default style color (default).
  • From entity - uses the style and color defined for the entity.
  • From taxonomy relation - uses the style and color defined for a specific taxonomy. Select the taxonomy relation in the Relation list.
Note

You can further customize the display using the entity visualization options in Search components based on taxonomy definitions.

Fields tab

You can decide which fields to display in the search results.

To define a field to display: Which fields that are available depend on the fields you select.

  1. In the Fields section, click Add .

  2. Next to Type, select one of the following options: Property or Relation.

  3. In the Field drop-down list, select the field you want to configure.

  4. Define the following settings for each field type:

    Property

    SettingDescription
    Show user avatarDisplays the user avatar instead of text. Applies to the Created by field.
    Display formatHow the field type is indicated (for example, text, badge, icon, or option list).
    StyleThe style for the text display format.
    Limit number of linesSwitch to limit the number of lines in search results.
    Number of lines to showIf you turned on the Limit number of lines switch, specify the number of lines to display.
    Conditional colorColor for the display format for badges.
    Field expressionLets you select an operator and define an expression.
    Show help textType and style of the help text displayed on the search result tile (for example, Inline or Tooltip).

    Relation

    SettingDescription
    Display formatHow the field type is indicated (for example, text or icon).
    Limit number of itemsSwitch to limit the number of items in search results. Applies only to the relation type.
    Number of items to showThe maximum number of search results to display.
    ColorColor of the text or icon used for the display format.
    Conditional colorColor for the display format for badges.
    Field expressionLets you select an operator and define an expression.
    Show help textType and style of the help text displayed on the search result tile (for example, Inline or Tooltip).
    Truncate label atDetermines the number of label characters shown. If this is set to 0, the full label is shown.
    Note

    For the list view, the Advanced option is only available if you select the Card template.

  5. Configure the additional settings required for the selected fields.

  6. Click Save.

Operations tab

You can configure which operations to make available on the search results. Operations are internal or external actions involving the entity in question.

To add an entity operations component in the main click area, click Add operation.

The following table lists the available entity operations of the Search component.

OperationDescription
Add to saved selectionAdds the entity to a saved selection.
ApproveApproves the entity in review.
ArchiveArchives the entity.
Check inChecks in the entity from external systems (such as Adobe Photoshop, InDesign, Illustrator, and so on). This operation persists the modifications applied to the entity in the external systems.
Check outChecks out the entity to external systems (such as Adobe Photoshop, InDesign, Illustrator, and so on). This operation locks the entity.
DeleteDeletes the entity.
Direct-publishDirectly publishes the entity, making it available with the other approved entities while skipping the reviewing process.
Discard checkoutDiscards the checkout of the entity and ignores any modifications applied to the entity in the external systems.
DownloadDownloads the entity.
Generate PDFGenerates a PDF from the entity. This operation requires a preconfigured Print entity generation action.
Go to fixed pathLets you enter a relative path to the details page as a text string. This improves performance when a user navigates from a search page to a details page. You must update this fixed path when you move a page.
Inline previewPreviews the entity using the inline preview display. This operation is only available for the Grid, Table, List, and Calendar output views. You need to enable the Inline preview output view for the operation to work correctly.
OneDrive checkoutChecks out the entity to a preconfigured OneDrive account. This operation adds the entity to the Checkouts page.
OneDrive downloadUploads a copy of the entity to a preconfigured OneDrive account. This operation uploads a copy of the entity, so the entity itself is not added to the Checkouts page.
PlacePlaces the image as a layer using Sitecore Connect for Creative Cloud (this operation is not meant to be used within Content Hub).
PreviewOpens a preview rendition of the asset.
Quick editOpens a window with a preconfigured entity details page to edit the entity.
RejectRejects the entity in review.
Remove from collectionRemoves the entity from a collection it belongs to.
Remove from saved selectionRemoves the entity from a saved selection it belongs to.
Remove from mass edit selectionRemoves the entity from a mass edit selection it belongs to.
RestoreRestores the entity from the archive to its previous repository.
Select public linkAllows configured connectors to create and select public links for Content Hub assets within the connector's interface.

When configuring the operation, in the Integration drop-down list, choose the connector you want to use.
Set as masterSets the file as master file for an entity. For example, set as the master version of an asset.
SubmitSubmits the entity for approval.
Toggle switchSets a Boolean property of the entity to true or false. You need to provide a Boolean field for this operation (for example, M.Script.Enabled).
UnlockUnlocks the locked entity. Entities are locked when they are checked out to external systems.
Use direct linkProvides a direct link to the entity. This operation opens the provided link in a new window.
View ancestor detailsProvides the ancestor details of the entity. You need to specify an ancestor relation and a redirection page.
View detail pageRedirects you to the detail page of the entity.
View detailsOpens a configurable window showing the details of the entity. This operation provides various window types. The drawer type allows you to open multiple detail windows at once.
External actionExecutes one or more preconfigured actions. This operation allows you to set visibility conditions and permissions.

To add an operation:

  1. In the Operations section, click Add operation.
  2. Select the desired operation.
  3. Configure the display and operation settings.
  4. Click Save.
  5. To make the operation available in the More options menu instead of the Main menu, drag the created operation from the MAIN OPERATIONS zone to the MORE OPTIONS MENU zone.

Indicators tab

Indicators are flag-like properties (icons or labels) that provide additional information about an entity. To add an indicator, click Add indicator and configure the indicator settings. The following table lists available indicators.

IndicatorDescription
Asset media typeThe asset media type of the entity.
Cover imageThe entity has been designated as a cover image.
Created onThe entity is in Created status.
Deliverable lifecycle statusThe lifecycle status of the entity.
DraftThe entity is a draft.
Duplicates existThe entity has duplicates.
Gen AIThe entity was created or updated using generative AI.
Has annotationsThe entity has annotations. To indicate the number of annotations, turn on the Show number of annotations switch. This displays a counter .
Has public linkThe entity has a public link.
In reviewThe entity is in In review status.
Linked asset modifiedThe linked entity has been modified.
Local reviewThe entity has a local review.
LockThe entity is locked.
Public links existThere are public links available for the entity.
Publishing statusThe publishing status of the entity, for example Draft.
RejectedThe entity was rejected.
System itemThe entity is system-owned.
There is a new version of this linked assetThe file of the child linked asset is more recent than the file of its parent asset. Restricted to M.Asset entities. Applies only to Adobe InDesign files.
Custom indicatorA custom indicator, which can be configured based on a string, integer, or boolean value so that it only appears when a specific condition is met.

Calendar settings tab

The following table lists available calendar settings. The calendar view is particularly useful for time-based assets, such as event photos or scheduled content.

SettingDescription
Start dateThe first date in the search range, for example, the first day when an asset was created.
End dateThe last date in the search range, for example, the last day when an asset was created
Facet for groupingHow search results are grouped.

Visualization tab

The following table lists the available visualization options.

VisualizationDescription
Column ChartA column chart displays categories along the horizontal axis and values along the vertical.
TableA table is a collection of related data held in a table format.
If you have suggestions for improving this article, let us know!