Skip to content
Snippets Groups Projects
Commit 72c56183 authored by Fabian Thommen's avatar Fabian Thommen Committed by Susanne Moog
Browse files

[TASK] div around search word

- div with css class 'tx-indexedsearch-info-sword' added, to style or hide
this with csc
- only show info about search word if any result is found (as the search
word is already shown in the input field)

Releases: master
Resolves: #82076
Change-Id: I734b84d8e07823ba9a7ed1d2aa86108352139616
Reviewed-on: https://review.typo3.org/53673


Reviewed-by: default avatarHenning Liebe <h.liebe@neusta.de>
Tested-by: default avatarHenning Liebe <h.liebe@neusta.de>
Tested-by: default avatarTYPO3com <no-reply@typo3.com>
Reviewed-by: default avatarJoerg Boesche <typo3@joergboesche.de>
Tested-by: default avatarJoerg Boesche <typo3@joergboesche.de>
Reviewed-by: default avatarSusanne Moog <susanne.moog@typo3.org>
Tested-by: default avatarSusanne Moog <susanne.moog@typo3.org>
parent 4973abb6
Branches
Tags
No related merge requests found
......@@ -6,18 +6,20 @@
<f:if condition="{result.categoryTitle}">
<h1 class="tx-indexedsearch-category">{result.categoryTitle}</h1>
</f:if>
<!-- show the info what was searched for -->
<f:for each="{searchWords}" as="searchWord" key="key">
<f:if condition="{key} > 0">
<f:then>
<f:translate key="searchFor.{searchWord.oper}" />&nbsp;{searchWord.sword}
</f:then>
<f:else>
<f:translate key="searchFor" />&nbsp;{searchWord.sword}
</f:else>
</f:if>
</f:for>
<!-- show the info in which section was searched for -->
<f:if condition="{result.count} > 0">
<div class="tx-indexedsearch-info-sword">
<f:for each="{searchWords}" as="searchWord" key="key">
<f:if condition="{key} > 0">
<f:then>
<f:translate key="searchFor.{searchWord.oper}" />&nbsp;{searchWord.sword}
</f:then>
<f:else>
<f:translate key="searchFor" />&nbsp;{searchWord.sword}
</f:else>
</f:if>
</f:for>
</div>
</f:if>
{result.searchedInSectionInfo}
<f:if condition="{result.count} > 0">
<f:then>
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment