Bug #80840

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 2 years ago. Updated 4 months ago.

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

0%

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

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

History

#1 Updated by Walter Kruml almost 2 years ago

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

#2 Updated by Walter Kruml almost 2 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}" />

#3 Updated by Benni Mack 4 months ago

  • Target version changed from next-patchlevel to Candidate for patchlevel

Also available in: Atom PDF