Issue Feature Closed

#82488Possibility to modify the display results before FluidView assignment

Joerg Boesche 09/15/17, 10:17 updated 10/02/18, 10:55

Description

In some cases the search result rows should get additional data for the visualization in the frontend. Like custom page paths or string replacements, etc.
To modify the display result rows before assign to the fluid view, we have to introduce a new hook inside the `getDisplayResults()` method, called `getDisplayResults_postProc` before the return statement.

Currently there is a hook called `getDisplayResults` in the `SearchController`, but the hook overwrites the whole business logic. The internal method `getDisplayResults()` is a protected function, so it is not possible to call the default business logic as `parent::`. It also sets internal class properties for ranking calculation, etc.

The old piBase hook prepareResultRowTemplateData_postProc was not implemented after the refactoring to extbase.

Reviews 1