Feature: #82070 - Exclude doktypes in path of search result (indexed_search)¶
See forge#82070
Description¶
After submitting the search form in Indexed Search, the search results are displayed. Each search result displays a "path" and contains the page tree structure. In the structure, system folders can be used, which actually can't be excluded when the path is rendered. Similar to "hide in menu" or "RealUrl exclude from path segment", there should be a configuration to exclude doktypes from the path render business logic.
Page tree structure: [SysFolder] Footer -> [SysFolder] Navigation -> [Page] Imprint
Output in Indexed Search without pathExcludeDoktypes
settings:
/Footer/Navigation/Imprint
Output in Indexed Search with pathExcludeDoktypes
settings:
/Imprint
Examples¶
Exclude single doktype¶
sys_folder (doktype: 254)
plugin.tx_indexedsearch {
settings {
results {
pathExcludeDoktypes = 254
}
}
}
Exclude multiple doktypes¶
sys_folder (doktype: 254) and shortcuts (doktype:4)
plugin.tx_indexedsearch {
settings {
results {
pathExcludeDoktypes = 254,4
}
}
}