TYPO3-CMS / styleguide

[READ-ONLY] Subtree split of the TYPO3 Core Extension "styleguide"
GNU General Public License v2.0
103 stars 61 forks source link

Frontend indexed_search example does not work out of the box with installed ext:indexed_search #321

Closed sbuerk closed 2 years ago

sbuerk commented 2 years ago

Bug Report

Prerequisites

Description

If styleguide is installed along with indexed_search in core main / core 11, and the frontend styleguide side installed and published, indexing works out of the box. However, the frontend example with the search always returns "no result".

Debugging the indexed_search SearchController revealed, that some settings which are configured with a constant are not replaced due the missing constants include. Thus having invalid data and do not build a correct result set.

Manual adding the "indexed_searched" static TypoScript to the styleguide frontend site / pageTree mitigates this issue.

styleguide frontend TypoScript includes the setup file from indexed_search, but not the corresponding constants file, thus missing the constants definition with default value.

Steps to Reproduce

  1. install/activate ext:indexed_search
  2. install/activate ext:styleguide
  3. install styleguide frontend tree
  4. publish/make frontend site visible/active
  5. open frontend page and click through the diferent (all) pages in the menu, to index data
  6. open the frontend list page /<styleguide-frontendsite-base>/list
  7. search for something, e.g. "bacon" or "menu"

Expected behavior: Retrieving resultlist listing pages/results

Actual behavior: No result retrieved and "No results" is displayed.