Commit 5d96ab92 authored by Thorsten Griebenow's avatar Thorsten Griebenow
Browse files

Merge branch '43-bootstrapping-the-ter-views' into 'develop'

Resolve "Bootstrapping the TER list view"

See merge request !50
parents 4548c1d8 342eef0b
Pipeline #186 passed with stages
in 1 minute and 58 seconds
......@@ -4,7 +4,8 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file",
"This file is @generated automatically"
],
"content-hash": "ef350ae3312b48fc403b665c1f379f2e",
"hash": "d102175d21025ac69eec570a9f66acac",
"content-hash": "ef31fc60ecb77d0d1f9bdc79ed26c3c6",
"packages": [
{
"name": "apache-solr-for-typo3/solr",
......@@ -1391,4 +1392,4 @@
"prefer-lowest": false,
"platform": [],
"platform-dev": []
}
}
\ No newline at end of file
<?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
#}
index {
queue {
......
plugin.tx_solr.cssFiles.results =
\ No newline at end of file
<INCLUDE_TYPOSCRIPT: source="FILE:EXT:ter_layout/Configuration/TypoScript/Page.ts">
<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
pagebrowser = EXT:ter_layout/Resources/Private/Ext/Solr/Pagebrowser.html
}
cssFiles.results =
}
lib.solr.format_number = TEXT
lib.solr.format_number {
field = argument_0
numberFormat = 1
numberFormat.thousands_sep = ,
}
lib.solr.extensionkeywithdashes = TEXT
lib.solr.extensionkeywithdashes {
field = argument_0
replacement {
10 {
search = _
replace = -
}
}
}
page = PAGE
page {
bodyTagAdd = class="js-off"
meta {
description.data = field:description
description.ifEmpty (
TYPO3 is a free, feature-rich Enterprise class Open Source Web CMS based on PHP with a vast international
community of developers and supporters. typo3.org is the official resource for TYPO3 and offers tutorials,
downloads, an extension repository and information about the TYPO3 community like mailing lists, blog,
events
)
keywords.data = field:keywords
keywords.ifEmpty = typo3,typo3 cms,typo 3,content management system,opensource cms, web cms
robots = index, follow
includeCSS {
ter = EXT:ter_layout/Resources/Public/Css/ter.css
}
shortcutIcon = EXT:ter_layout/Resources/Public/Icons/favicon.ico
}
\ No newline at end of file
}
<!-- ###PAGE_BROWSER### begin -->
<nav aria-label="Pagination" class="tx-solr-pagination-page-browser tx-pagebrowse-pi1">
<!--TYPO3SEARCH_end-->
<ul class="pagination justify-content-center">
<!-- ###ACTIVE_FIRST### begin -->
<li class="page-item"><a class="page-link" href="###FIRST_LINK###">&laquo; ###TEXT_FIRST###</a></li>
<!-- ###ACTIVE_FIRST### end -->
<!-- ###INACTIVE_FIRST### begin -->
<li class="page-item disabled"><span class="page-link">&laquo; ###TEXT_FIRST###</span></li>
<!-- ###INACTIVE_FIRST### end -->
<!-- ###ACTIVE_PREV### begin -->
<li class="page-item"><a class="page-link" href="###PREV_LINK###">&lsaquo; ###TEXT_PREV###</a></li>
<!-- ###ACTIVE_PREV### end -->
<!-- ###INACTIVE_PREV### begin -->
<li class="page-item disabled"><span class="page-link">&lsaquo; ###TEXT_PREV###</span></li>
<!-- ###INACTIVE_PREV### end -->
<!-- ###PAGES### begin -->
<!-- ###LESS_PAGES### begin -->
<li class="page-item"><span class="page-link">...</span></li>
<!-- ###LESS_PAGES### end -->
<!-- ###PAGE### begin -->
<li class="page-item"><a class="page-link" href="###LINK###">###NUMBER_DISPLAY###</a></li>
<!-- ###PAGE### end -->
<!-- ###CURRENT### begin -->
<li class="page-item active"><span class="page-link">###NUMBER_DISPLAY###</span></li>
<!-- ###CURRENT### end -->
<!-- ###MORE_PAGES### begin -->
<li class="page-item"><span class="page-link">...</span></li>
<!-- ###MORE_PAGES### end -->
<!-- ###PAGES### end -->
<!-- ###ACTIVE_NEXT### begin -->
<li class="page-item"><a class="page-link" href="###NEXT_LINK###">###TEXT_NEXT### &rsaquo;</a></li>
<!-- ###ACTIVE_NEXT### end -->
<!-- ###INACTIVE_NEXT### begin -->
<li class="page-item disabled"><span class="page-link">###TEXT_NEXT### &rsaquo;</span></li>
<!-- ###INACTIVE_NEXT### end -->
<!-- ###ACTIVE_LAST### begin -->
<li class="page-item"><a class="page-link" href="###LAST_LINK###">###TEXT_LAST### &raquo;</a></li>
<!-- ###ACTIVE_LAST### end -->
<!-- ###INACTIVE_LAST### begin -->
<li class="page-item disabled"><span class="page-link">###TEXT_LAST### &raquo;</span></li>
<!-- ###INACTIVE_LAST### end -->
</ul>
<!--TYPO3SEARCH_begin-->
</nav>
<!-- ###PAGE_BROWSER### end -->
</body>
</html>
<?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="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>
</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 -->
<ol start="###RESULTS.OFFSET###" class="list-unstyled results-list">
<!-- ###LOOP:RESULT_DOCUMENTS### begin -->
<!-- ###LOOP_CONTENT### -->
<li class="results-entry###IF:###RESULT_DOCUMENT.isElevated###|==|1|class### results-elevated###IF:###RESULT_DOCUMENT.isElevated###|==|1|class###">
<div class="mb-3">
<div class="card">
<!--
Score: ###RESULT_DOCUMENT.SCORE###
Document ID: ###RESULT_DOCUMENT.ID###
-->
<div class="card-header">
<h3 class="card-title">
###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###|!=|###
<a href="###RESULT_DOCUMENT.url###">###RESULT_DOCUMENT.title###</a>
</h3>
<h6 class="card-subtitle mb-2 text-muted">
###RESULT_DOCUMENT.extensionKey_stringS### /
<span class="ter-ext-state ter-ext-state-###RESULT_DOCUMENT.extensionState_stringS###">###RESULT_DOCUMENT.extensionState_stringS###</span>
</h6>
</div>
<div class="card-block">
<p class="card-text">###RESULT_DOCUMENT.content###</p>
<table class="table table-sm">
<thead>
<tr>
<th><i class="fa fa-info-circle"></i> Version</th>
<th><i class="fa fa-user"></i> Author</th>
<th><i class="fa fa-calendar"></i> Last updated</th>
<th><i class="fa fa-download"></i> Downloads</th>
<th>Compatibility</th>
<th><i class="fa fa-book"></i> Manual</th>
</tr>
</thead>
<tbody>
<tr>
<td>###RESULT_DOCUMENT.extensionVersion_stringS###</td>
<td>###RESULT_DOCUMENT.author###</td>
<td>###DATE:###RESULT_DOCUMENT.extensionLastUpload_intS######</td>
<td>###TS:lib.solr.format_number|###RESULT_DOCUMENT.extensionDownloads_intS######</td>
<td>###RESULT_DOCUMENT.extensionDependency_stringS###</td>
<td>###RESULT_DOCUMENT.extensionDocumentationLink_stringS###</td>
</tr>
</tbody>
</table>
<code>composer require typo3-ter/###TS:lib.solr.extensionkeywithdashes|###RESULT_DOCUMENT.extensionKey_stringS######</code>
</div>
<div class="card-footer">
<a class="btn btn-primary" href="###RESULT_DOCUMENT.extensionDownloadZipUrl_stringS###">
<i class="fa fa-download"></i> Download ZIP Archive
</a>
<a class="btn btn-default" href="###RESULT_DOCUMENT.extensionDownloadT3xUrl_stringS###">
<i class="fa fa-download"></i> Download T3X Package
</a>
</div>
</div>
</div>
</li>
<!-- ###LOOP_CONTENT### -->
<!-- ###LOOP:RESULT_DOCUMENTS### end -->
</ol>
<!-- 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 -->
<!-- ###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>
span.ter-ext-state-stable {
color: #3db900;
}
span.ter-ext-state-beta {
color: #f4bd00;
}
span.ter-ext-state-alpha {
color: #f14400;
}
span.ter-ext-state-expiremental {
color: #000000;
}
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