Feature #82488

Possibility to modify the display results before FluidView assignment

Added by Joerg Boesche about 2 years ago. Updated about 1 year ago.

Status:
Closed
Priority:
Must have
Assignee:
Category:
Indexed Search
Start date:
2017-09-15
Due date:
% Done:

100%

PHP Version:
7.0
Tags:
indexed_search
Complexity:
Sprint Focus:

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.

Associated revisions

Revision 1d07441c (diff)
Added by Joerg Boesche almost 2 years ago

[FEATURE] Hook to modify the display results before FluidView assignment

To modify the display result rows before data is assigned to the fluid
view there is a new hook inside the `getDisplayResults()` method
called `getDisplayResults_postProc`.

Resolves: #82488
Releases: master
Change-Id: I2f0ac073692fb28b9c71a18def027c71a418606f
Reviewed-on: https://review.typo3.org/54148
Reviewed-by: Jigal van Hemert <>
Tested-by: Jigal van Hemert <>

History

#1 Updated by Gerrit Code Review about 2 years ago

  • Status changed from New to Under Review

Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/54148

#2 Updated by Gerrit Code Review about 2 years ago

Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/54148

#3 Updated by Gerrit Code Review about 2 years ago

Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/54148

#4 Updated by Gerrit Code Review almost 2 years ago

Patch set 4 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/54148

#5 Updated by Gerrit Code Review almost 2 years ago

Patch set 5 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/54148

#6 Updated by Joerg Boesche almost 2 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100

#7 Updated by Benni Mack about 1 year ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF