Commit c51ebf68 authored by marco's avatar marco Committed by Thomas Löffler

[TASK] Adapt template for TER solr search results

parent 6bc58163
......@@ -4,7 +4,7 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file",
"This file is @generated automatically"
],
"hash": "26982d9f82bef372c305c1222157d6cb",
"hash": "d102175d21025ac69eec570a9f66acac",
"content-hash": "ef31fc60ecb77d0d1f9bdc79ed26c3c6",
"packages": [
{
......
<?php
/**
* This file is part of the TYPO3 CMS project.
*
* It is free software; you can redistribute it and/or modify it under
* the terms of the GNU General Public License, either version 2
* of the License, or any later version.
*
* For the full copyright and license information, please read the
* LICENSE.txt file that was distributed with this source code.
*
* The TYPO3 project - inspiring people to share!
*/
$GLOBALS['TYPO3_CONF_VARS']['SYS']['trustedHostsPattern'] = '.*';
$GLOBALS['TYPO3_CONF_VARS']['BE']['loginSecurityLevel'] = 'normal';
\ No newline at end of file
......@@ -3,8 +3,8 @@ return [
'BE' => [
'debug' => true,
'explicitADmode' => 'explicitAllow',
'installToolPassword' => '$P$CzAdUYQSrEKlh1s4EwVjp7sfHxf1LT.',
'loginSecurityLevel' => 'normal',
'installToolPassword' => '$P$CNFL2v68eXaD3NFqVuwQwGL2ButeOs1',
'loginSecurityLevel' => 'rsa',
],
'DB' => [
'database' => 't3o',
......@@ -17,6 +17,8 @@ return [
'extConf' => [
'rsaauth' => 'a:1:{s:18:"temporaryDirectory";s:0:"";}',
'saltedpasswords' => 'a:2:{s:3:"BE.";a:4:{s:21:"saltedPWHashingMethod";s:41:"TYPO3\\CMS\\Saltedpasswords\\Salt\\PhpassSalt";s:11:"forceSalted";i:0;s:15:"onlyAuthService";i:0;s:12:"updatePasswd";i:1;}s:3:"FE.";a:5:{s:7:"enabled";i:1;s:21:"saltedPWHashingMethod";s:41:"TYPO3\\CMS\\Saltedpasswords\\Salt\\PhpassSalt";s:11:"forceSalted";i:0;s:15:"onlyAuthService";i:0;s:12:"updatePasswd";i:1;}}',
'solr' => 'a:0:{}',
't3olayout' => 'a:0:{}',
'ter' => 'a:1:{s:13:"repositoryDir";s:27:"/var/www/html/fileadmin/ter";}',
'ter_fe2' => 'a:0:{}',
'ter_layout' => 'a:0:{}',
......
......@@ -6,9 +6,9 @@ plugin {
path = solr/t3o/
}
templateFiles {
search = EXT:ter_layout/Resources/Private/Ext/Solr/Search.html
}
#templateFiles {
# search = EXT:ter_layout/Resources/Private/Ext/Solr/Search.html
#}
Please register or sign in to reply
index {
queue {
......
plugin.tx_solr.cssFiles.results =
\ No newline at end of file
<INCLUDE_TYPOSCRIPT: source="DIR:EXT:ter_layout/Configuration/TypoScript/Ext/" extensions="ts">
plugin.tx_solr {
templateFiles {
search = EXT:ter_layout/Resources/Private/Ext/Solr/Search.html
results = EXT:ter_layout/Resources/Private/Ext/Solr/Results.html
}
cssFiles.results =
}
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Template for the search results view for EXT:solr</title>
</head>
<body>
<!-- ###SOLR_SEARCH### begin -->
<div class="container">
<div class="ter-ext-list-search">
<!-- ###SOLR_SEARCH_SORTING### begin -->
<span class="ter-ext-list-search-sorting cl">
<label for="ter-ext-list-search-sorting">###LLL:sorting_sortBy###: </label>
<select class="jsSubmit" id="ter-ext-list-search-sorting" name="###TX_SOLR.PREFIX###[sort]">
<!-- ###LOOP:SORT### begin -->
<!-- ###LOOP_CONTENT### -->
<option value="###SORT.url###" ###SORT.selected###>
###SORT.label###
</option>
<!-- ###LOOP_CONTENT### -->
<!-- ###LOOP:SORT### end -->
</select>
</span>
<!-- ###SOLR_SEARCH_SORTING### end -->
<!-- ###SOLR_SEARCH_FORM### begin -->
<form id="tx-solr-search-form-pi-results" action="###FORM.ACTION###" method="get" accept-charset="###FORM.ACCEPT-CHARSET###" data-suggest-url="###FORM.SUGGEST_URL_RAW###">
<input type="hidden" name="id" value="###FORM.ACTION_ID###" />
<input type="hidden" name="###FORM.ACTION_LANGUAGE_PARAMETER###" value="###FORM.ACTION_LANGUAGE###" />
<input type="text" id="ter-ext-list-search-needle" class="tx-solr-q form-input" name="###TX_SOLR.QUERY_PARAMETER###" value="###FORM.Q###" />
<input type="submit" class="bu" value="###LLL:submit###" />
<!-- ###SOLR_SEARCH_FORM### end -->
<!-- ###SOLR_SEARCH_FACETING### begin -->
###IF:###FACETING.search_has_results###|==|1|x###
<div id="ter-filter-toggle" class="ter-toggle
###IF:###FACETING.active###|==|1###
ter-toggle-showLess
###IF:###FACETING.active###|==|1###
">
<div id="ter-filter-toggler"><span class="bu bu-mini"><span>Filter</span></span></div>
<hr>
</div>
<div id="tx-solr-faceting" class="ter-filter"
###IF:###FACETING.active###|==|0###
style="display: none;"
###IF:###FACETING.active###|==|0###
>
<!-- ###AVAILABLE_FACETS### begin -->
<div id="tx-solr-facets-available" class="secondaryContentSection">
<!-- ###SINGLE_FACET### begin -->
<div class="facet facet-###FACET.name### facet-type-###FACET.type###">
<h5 class="facet-label csc-header">###FACET.label###</h5>
<!-- ###SINGLE_FACET_OPTION### begin -->
<!-- ###LOOP:FACET_LINKS### begin -->
<!-- ###LOOP_CONTENT### -->
<div class="facet-option">
<input type="checkbox"
###IF:###FACET_LINK.facetName###|==|outdated###
name="tx_solr[filter][###FACET_LINK.facetName###]"
###IF:###FACET_LINK.facetName###|==|outdated###
###IF:###FACET_LINK.facetName###|!=|outdated###
name="tx_solr[filter][]"
###IF:###FACET_LINK.facetName###|!=|outdated###
class="facet-item" id="facet-###FACET_LINK.facetName###-option-###FACET_LINK.value###" value="###FACET_LINK.facetName###:###FACET_LINK.value###"
###IF:###FACET_LINK.selected###|==|1###
checked="checked"
###IF:###FACET_LINK.selected###|==|1###
/>
<label for="facet-###FACET_LINK.facetName###-option-###FACET_LINK.value###">###FACET_LINK.text###</label>
</div>
<!-- ###LOOP_CONTENT### -->
<!-- ###LOOP:FACET_LINKS### end -->
<!-- ###SINGLE_FACET_OPTION### end -->
</div>
<!-- ###SINGLE_FACET### end -->
<div class="facet facet-typo3-version">
<h5 class="facet-label csc-header">TYPO3 Version</h5>
<input value="###TS:lib.solr.selected_typo3_filter.min###" name="tx_solr[filter][extensionMinTYPO3Version]" id="ter-ext-list-typo3-min-version" type="hidden" />
<input value="###TS:lib.solr.selected_typo3_filter.max###" name="tx_solr[filter][extensionMaxTYPO3Version]" id="ter-ext-list-typo3-max-version" type="hidden" />
<div class="facet-type-slider">
<div id="ter-ext-list-version-slider" class="noUi-extended"></div>
</div>
</div>
</div>
<!-- ###AVAILABLE_FACETS### end -->
<div style="clear: both;"> </div>
Please register or sign in to reply
</div>
###IF:###FACETING.search_has_results###|==|1|x###
<!-- ###SOLR_SEARCH_FACETING### end -->
</form>
</div>
<!-- ###SOLR_SEARCH_RESULTS### begin -->
<div class="ter-ext-list-count">
###IF:###RESULTS.count###|==|1###
###RESULTS.count### extension found
###IF:###RESULTS.count###|==|1###
###IF:###RESULTS.count###|>|1###
###RESULTS.count### extensions found
###IF:###RESULTS.count###|>|1###
</div>
<!-- RESULT LIST begin -->
<div start="###RESULTS.OFFSET###" class="results-list">
Please register or sign in to reply
<!-- ###LOOP:RESULT_DOCUMENTS### begin -->
<!-- ###LOOP_CONTENT### -->
<div class="results-entry###IF:###RESULT_DOCUMENT.isElevated###|==|1|class### results-elevated###IF:###RESULT_DOCUMENT.isElevated###|==|1|class###">
<!--
Score: ###RESULT_DOCUMENT.SCORE###
Document ID: ###RESULT_DOCUMENT.ID###
-->
<div class="row">
<div class="col-md-6">
  • Another question: Will we be using bootstrap4? The way we can define the classes in the grid system will offer a more flexible way, see: https://v4-alpha.getbootstrap.com/layout/grid/ - so in this case the better option might be class="col-6".

Please register or sign in to reply
<a href="###RESULT_DOCUMENT.url###">
<h3>
###IF:###RESULT_DOCUMENT.extensionIcon_stringS###|!=|###
<img class="ter-ext-icon" alt="###RESULT_DOCUMENT.title###" src="###RESULT_DOCUMENT.extensionIcon_stringS###" height="16" width="16">
###IF:###RESULT_DOCUMENT.extensionIcon_stringS###|!=|###
###RESULT_DOCUMENT.title###
</h3>
</a>
</div>
<div class="col-md-6">
<span class="ter-ext-list-row-key">###RESULT_DOCUMENT.extensionKey_stringS###</span>
</div>
</div>
<div class="row">
<div class="col-md-6">
<div class="ter-ext-list-meta">
by ###RESULT_DOCUMENT.author###
</div>
<p>###RESULT_DOCUMENT.content###</p>
</div>
<div class="col-md-6">
<table class="table">
<tr>
<th>Version</th>
<td>###RESULT_DOCUMENT.extensionVersion_stringS### <span class="ter-ext-state ter-ext-state-###RESULT_DOCUMENT.extensionState_stringS###">###RESULT_DOCUMENT.extensionState_stringS###</span></td>
</tr>
<tr>
<th>Last Updated</th>
<td>###DATE:###RESULT_DOCUMENT.extensionLastUpload_intS######</td>
</tr>
<tr>
<th>Downloads</th>
<td>###TS:lib.solr.format_number|###RESULT_DOCUMENT.extensionDownloads_intS######</td>
</tr>
<tr>
<th>Compatibility</th>
<td>
###TS:lib.solr.compatibility_string|###RESULT_DOCUMENT.extensionMinTYPO3Version_sIntS###|###RESULT_DOCUMENT.extensionMaxTYPO3Version_sIntS######
</td>
</tr>
<tr>
<th>Manual</th>
<td>
###RESULT_DOCUMENT.extensionDocumentationLink_stringS###
</td>
</tr>
</table>
</div>
</div>
<div class="ter-ext-list-row-downloadsCCC">
<a class="ter-download-icon ter-download-icon-t3x" href="###RESULT_DOCUMENT.extensionDownloadT3xUrl_stringS###">Download T3X Package</a>
<a class="ter-download-icon ter-download-icon-zip" href="###RESULT_DOCUMENT.extensionDownloadZipUrl_stringS###">Download ZIP Archive</a>
</div>
</div>
<!-- ###LOOP_CONTENT### -->
<!-- ###LOOP:RESULT_DOCUMENTS### end -->
</div>
<!-- RESULT LIST end -->
###RESULTS.PAGEBROWSER###
<!-- ###SOLR_SEARCH_RESULTS### end -->
<!-- ###SOLR_SEARCH_NO_RESULTS### begin -->
<div class="tx-solr-search-no-results">
<div class="typo3-message message-warning">
<div class="message-header">###NO_RESULTS.nothing_found###</div>
<div class="message-body">###NO_RESULTS.showing_results_suggestion###. ###NO_RESULTS.search_for_original###</div>
</div>
###NO_RESULTS.SUGGESTION_RESULTS###
</div>
<!-- ###SOLR_SEARCH_NO_RESULTS### end -->
</div>
<!-- ###SOLR_SEARCH### end -->
<!-- ###SOLR_SEARCH_UNAVAILABLE### begin -->
###LLL:searchUnavailable###
<!-- ###SOLR_SEARCH_UNAVAILABLE### end -->
<!-- ###SOLR_SEARCH_ERROR### begin -->
###LLL:searchFailed###
<!-- ###SOLR_SEARCH_ERROR### end -->
</body>
</html>
\ No newline at end of file
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