Commit ade05654 authored by Thomas Löffler's avatar Thomas Löffler

Use settings of TypoScript to set maximumNumberOfLinks

parent c8395c50
Pipeline #5689 passed with stages
in 9 minutes and 8 seconds
plugin.tx_solr {
templateFiles {
search = EXT:ter_layout/Resources/Private/Ext/Solr/Search.html
results = EXT:ter_layout/Resources/Private/Ext/Solr/Results.html
pagebrowser = EXT:ter_layout/Resources/Private/Ext/Solr/Pagebrowser.html
}
view {
templateFiles {
results = EXT:ter_layout/Resources/Private/Templates/Solr/Results.html
}
layoutRootPaths {
0 = EXT:solr/Resources/Private/Layouts
}
......@@ -17,9 +9,11 @@ plugin.tx_solr {
}
templateRootPaths {
0 = EXT:solr/Resources/Private/Templates
100 = EXT:ter_layout/Resources/Private/Templates/Solr/
}
}
cssFiles.results =
cssFiles.results =
settings.maximumNumberOfLinks = 6
}
plugin.tx_solr.search {
......
......@@ -42,7 +42,7 @@
</f:if>
<f:if condition="{hasSearched}">
<s:widget.resultPaginate resultSet="{resultSet}" configuration="{maximumNumberOfLinks: 6, templatePath:'EXT:ter_layout/Resources/Private/Templates/Solr/ViewHelpers/Widget/ResultPaginate/Index.html'}">
<s:widget.resultPaginate resultSet="{resultSet}" configuration="{maximumNumberOfLinks: settings.maximumNumberOfLinks, templatePath:'EXT:ter_layout/Resources/Private/Templates/Solr/ViewHelpers/Widget/ResultPaginate/Index.html'}">
<f:variable name="exactMatchFound" value="0" />
<f:if condition="{resultSet.usedQuery.queryString -> f:format.case(mode:'lower')} == {documents.0.extensionKey_stringS}">
<f:render partial="Result/Document" section="DocumentWrap" arguments="{resultSet:resultSet, document:documents.0, exactMatchFound: 1}" />
......
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