AEM Matrix Component
AEM Matrix Component Information
The Matrix components may be used together to create flexible, modular content search areas with configurable fields for how the user may filter the list of AEM pages.
Index: The initial list of pages that the Matrix Filtering component retrieves to be displayed, based on configured Base Page, Base Tags, and Filter Tags.
Search Area: The public, user-facing searching and filtering configured via Keyword Search or Tag Search settings.
Results Area: The public, user-facing list of pages from the Index, filterable by the search area.
Search Title
This sets the header text that will be displayed on the page above the Matrix Filtering component.
Base Page
The Index will include only pages that are nested under the Base Page, if set. If the Base Tags or Filter Tags are set, the Index will be additionally filtered to include only pages tagged with either the Base Tags or Filter Tags as specified.
Base Tags
The Index will include only pages that are tagged with any or all of the Base Tags specified, depending on the Base Tags Logic Type. If the Base Page is set, the Index will be additionally filtered to only children of the Base Page which include all of the Base Tags.
Base Tags Logic Type
Sets how the Index is filtered based on the selected Base Tags. The behavior of each Base Tags Logic Type is as follows:
OR: Index includes only pages matching any selected filter tags.
AND: Index includes only pages matching all selected filter tags. (Default)
Display Type
Determines the style applied to the Matrix Filtering list. Each Display Type makes use of specific fields from the Matrix Details component. If a page is shown in the results area and does not have a Matrix Details component containing the information used by the selected Display Type, data from the page’s properties will be used as a placeholder, where possible. The fields from a configured Matrix Details component will override the page properties in the information displayed in the results area.
Further Display Types will be made available as we find use cases for the Matrix Filtering component.
Matrix Details component fields used for different display types:
Link: Page Display Title
Content Block (No Image): Page Display Title, Page Subtitle, Redirect Link, Text
Content Block (With Image): All fields
Page properties fields used for different display types, if no Matrix Details component is present:
Link: Title
Content Block (No Image): Title
Content Block (With Image): Title
Display type examples:
Display Type Name |
Example Image |
Link |
|
Content Block (No Image) |
|
Content Block (With Image) |
Pagination
Choose how many items should appear on each results area page. If “No pagination” is selected and both the Keyword Search and Tag Search are disabled, pagination will default to 10 items per page.
Enable Search
Set whether users should be allowed to filter results area by a keyword search. The Keyword Search will search against a page’s Page Title, or if the page contains a configured Matrix Details component the Keyword Search will also search against the Display Title and Text area.
Search Label
The placeholder text that will appear in the Keyword Search bar (Default: “Search by keyword”).
The Keyword Search shown in the search area may be pre-selected using Query Parameters. To make use of a pre-filtered keyword, at the end of the URL for the page containing a matrix component, append “?keyword=search_term”, or “?search=search_term”. For an example, we’ll use the keyword search “Business”, append “?keyword=Business” to the page URL.
Display Title
The Display Title will override anywhere in a Matrix Filtering component results area that would display the page’s title from its page properties.
Redirect Link
The Redirect Link will override anywhere in a Matrix Filtering component results area that would link to the page the Matrix Details component is present on.
Image Alt Text
Image alt text (accessibility property) which will be included in the Matrix Filtering component results area if the Display Type includes an image.
Image Title
Image title text (accessibility property) which will be included in the Matrix Filtering component results area if the Display Type includes an image.
This description will be included in the Matrix Filtering component results area if the Display Type makes use of it.
This image may be selected from the DAM and will be included in the Matrix Filtering component results area if the Display Type makes use of it.