Bug #80840
closedEpic #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
100%
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
- DEUTSCH
- -------
[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]
- FRENCH
- -------
[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>
Files
Updated by Walter Kruml about 7 years ago
I have the same problem, did you found a solution?
Updated by Walter Kruml about 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}" />
Updated by Benni Mack over 5 years ago
- Target version changed from next-patchlevel to Candidate for patchlevel
Updated by Gerrit Code Review almost 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
Updated by Gerrit Code Review almost 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
Updated by Benni Mack almost 5 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset b2e47de4c9cbc7930682f48df988743e57d88a5c.