Commit 72099a02 authored by Tomas Norre Mikkelsen's avatar Tomas Norre Mikkelsen

Merge branch '369-pagination-breaks-viewport' into 'develop'

Set maximumNumberOfLinks to 6

Closes #369

See merge request !382
parents 483903ff ade05654
Pipeline #5756 passed with stages
in 12 minutes and 55 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 =
settings.maximumNumberOfLinks = 6
}
plugin.tx_solr.search {
......
......@@ -42,7 +42,7 @@
</f:if>
<f:if condition="{hasSearched}">
<s:widget.resultPaginate resultSet="{resultSet}" configuration="{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