Commit f580af68 authored by Thomas Löffler's avatar Thomas Löffler
Browse files

Merge branch '97-detail-page-keyword-links-do-not-result-in-filtered-result-list' into 'develop'

Resolve "Detail page keyword links do not result in filtered result list"

Closes #97

See merge request !116
parents 8d11cf05 08568aae
Pipeline #1756 passed with stages
in 3 minutes and 27 seconds
......@@ -53,7 +53,7 @@
<h3>Tags</h3>
<p class="tags">
<f:for each="{extension.tags}" as="tag">
<f:link.page class="btn btn-info mb-1" pageUid="{settings.pages.searchResultsPid}" additionalParams="{fq: 'keywords:{tag.title}'}">#{tag.title}</f:link.page>
<f:link.page class="btn btn-info mb-1" pageUid="{settings.pages.searchResultsPid}" additionalParams="{tx_solr: {filter: {0: 'keywords:{tag.title}'}}}">#{tag.title}</f:link.page>
</f:for>
</p>
</f:if>
......
......@@ -24,3 +24,20 @@ lib.solr.extensionkeywithdashes {
}
}
}
plugin.tx_solr.search.faceting = 1
plugin.tx_solr.search.faceting {
facets >
facets {
keywords {
label = Keywords
field = keywords
# we need the facet to be able to filter by keywords, but we don't want to show it in the filter
includeInAvailableFacets = 0
includeInUsedFacets = 0
includeInUsedFacets = 0
}
}
}
......@@ -34,7 +34,11 @@
<input type="submit" class="bu" value="###LLL:submit###" />-->
<!-- ###SOLR_SEARCH_FORM### end -->
<!-- ###SOLR_SEARCH_FACETING### begin -->
<!-- ###SOLR_SEARCH_FACETING### end -->
<!-- ###SOLR_SEARCH_FACETING_DISABLED### begin -->
###IF:###FACETING.search_has_results###|==|1|x###
......@@ -96,7 +100,7 @@
</div>
###IF:###FACETING.search_has_results###|==|1|x###
<!-- ###SOLR_SEARCH_FACETING### end -->
<!-- ###SOLR_SEARCH_FACETING_DISABLED### end -->
<!-- </form>
</div>-->
......
Markdown is supported
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