This module was created to support both the thumbnail and
gallery thumbnail modules that are used to
render thumbnails in search results. Because search results can contain any node types (e.g. blogs, wikis,
links, etc) rather than just documents and folders it provides the extra code for rendering the correct
thumbnail image for the additional types that can be displayed.
- Copyright:
- Copyright (C) 2005-2020 Alfresco Software Limited
- License:
- GNU Lesser General Public License, see: Open Source Licensing
- Source:
Members
-
highlightPostfix :string
-
This is the property within the currentItem that should be used to identify the content with in the renderedValue to highlight.
Type:
- string
- Since:
- 1.0.95
- Default Value:
- ""
- Source:
-
highlightPrefix :string
-
The prefix string that indicates the start of text to highlight.
Type:
- string
- Since:
- 1.0.95
- Default Value:
- " "
- Source:
-
i18nRequirements :object[]
-
An array of the i18n files to use with this widget.
Type:
- object[]
- Default Value:
- [{i18nFile: "./i18n/SearchThumbnail.properties"}]
- Source:
-
isDraggable :boolean
-
Overrides the inherited default configuration to prevent search result thumbnails from being draggable.
Type:
- boolean
- Since:
- 1.0.39
- Default Value:
- false
- Source:
Methods
-
generateFallbackThumbnailUrl() → {string}
-
Overrides the standard fallback to address specific site item types.
- Source:
Returns:
The URL for the thumbnail.- Type
- string
-
getAnchorTargetSelectors()
-
Returns an array containing the selector that identifies the span to wrap in an anchor. This overrides the mixed in function that just returns an empty array.
- Source:
-
onNonPreviewAction()
-
Override to ensure that search result link payloads aren't re-generated.
- Since:
- 1.0.32
- Source:
-
postCreate()
-
Generates the publication payload by calling the mixed in generatePayload function and then wraps the property in an anchor element by calling the mixed in makeAnchor function
- Source:
-
setImageTitle()
-
Extends the inherited function to ensure that image titles have search term highlighting delineation removed.
- Since:
- 1.0.95
- Source: