Project

General

Profile

Actions

Bug #80840

closed

Epic #65814: Make Indexed search extbase plugin shine

EXT:indexed_search FLUID based in V8.7.0 does not respect language value in {searchParams.languageUid} in search form from config.sys_language_uid

Added by Angelo Previtali over 7 years ago. Updated almost 5 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Indexed Search
Start date:
2017-04-13
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
8
PHP Version:
7.0
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

The search param value of {searchParams.languageUid} in the form of EXT:indexed_search gets ignored by the setup TS configuration if used with multiple languages. The value of this is always -1 instead of the definied language ID.

Our configuration / TS setup

  1. DEUTSCH
  2. -------
    [globalVar = GP:L = 0]
    config.sys_language_uid = 0
    config.language = de
    config.locale_all = de_DE
    plugin.tx_indexedsearch._DEFAULT_PI_VARS.lang = 0
    [global]
  1. FRENCH
  2. -------
    [globalVar = GP:L = 1]
    config.sys_language_uid = 1
    config.language = fr
    config.locale_all = fr_FR
    plugin.tx_indexedsearch._DEFAULT_PI_VARS.lang = 1
    [global]

plugin.tx_indexedsearch._DEFAULT_PI_VARS.lang < config.sys_language_uid

FLUID Template /Form.html of EXT:indexed_search in V8.7.0

<f:form action="search" method="post" id="tx_indexedsearch" pageUid="{settings.targetPid}">
<f:form.hidden name="search[_sections]" value="0" />
<f:form.hidden name="search[_freeIndexUid]" id="tx_indexedsearch_freeIndexUid" value="_" />
<f:form.hidden name="search[pointer]" id="tx_indexedsearch_pointer" value="0" />
<f:form.hidden name="search[ext]" value="{searchParams.ext}" />
<f:form.hidden name="search[searchType]" value="{searchParams.searchType}" />
<f:form.hidden name="search[defaultOperand]" value="{searchParams.defaultOperand}" />
<f:form.hidden name="search[mediaType]" value="{searchParams.mediaType}" />
<f:form.hidden name="search[sortOrder]" value="{searchParams.sortOrder}" />
<f:form.hidden name="search[group]" value="{searchParams.group}" />
<f:form.hidden name="search[languageUid]" value="{searchParams.languageUid}" />
<f:form.hidden name="search[desc]" value="{searchParams.desc}" />
<f:form.hidden name="search[numberOfResults]" value="{searchParams.numberOfResults}" />
<f:form.hidden name="search[extendedSearch]" value="{searchParams.extendedSearch}" />
</f:form>

HTML output from indexed_search


Files

form.png (93.3 KB) form.png HTML output from indexed_search Angelo Previtali, 2017-04-13 12:46
Actions #1

Updated by Walter Kruml over 7 years ago

I have the same problem, did you found a solution?

Actions #2

Updated by Walter Kruml over 7 years ago

Walter Kruml wrote:

I have the same problem, did you found a solution?

I found a solution:

[TS]

plugin.tx_indexedsearch.settings.defaultOptions.languageUid = 0

[globalVar = GP:L = 1]
plugin.tx_indexedsearch.settings.defaultOptions.languageUid = 1
[end]

[/TS]

and in a searchbox I have to change this line:
<f:form.hidden name="search[languageUid]" value="{settings.defaultOptions.languageUid}" />

Actions #3

Updated by Benni Mack over 5 years ago

  • Target version changed from next-patchlevel to Candidate for patchlevel
Actions #4

Updated by Riccardo De Contardi over 5 years ago

  • Parent task set to #65814
Actions #5

Updated by Gerrit Code Review about 5 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/c/Packages/TYPO3.CMS/+/62382

Actions #6

Updated by Gerrit Code Review about 5 years ago

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

Actions #7

Updated by Benni Mack about 5 years ago

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

Updated by Benni Mack almost 5 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF