...
 
Commits (14)
solr/mycores/*
sequelpro.spf
db_snapshots
docker-compose.yaml
#ddev-generated: Automatically generated ddev .gitignore.
# You can remove the above line if you want to edit and maintain this file yourself.
/import.yaml
/docker-compose.yaml
/db_snapshots
/sequelpro.spf
/import-db
/.bgsync*
/config.*.y*ml
/.webimageExtra
/.dbimageExtra
/*-build/Dockerfile.example
APIVersion: v1.8.0
APIVersion: v1.9.1
name: ter
type: typo3
docroot: public
php_version: "7.2"
webserver_type: nginx-fpm
dbimage: drud/ddev-dbserver:v1.6.0-10.1
router_http_port: "80"
router_https_port: "443"
xdebug_enabled: false
......@@ -15,23 +14,22 @@ nfs_mount_enabled: false
provider: default
hooks:
post-start:
- exec: bash -c "sudo -E apt-get update"
- exec: bash -c "sudo -E apt-get install --yes --no-install-recommends apt-utils"
- exec: bash -c "sudo -E apt-get install --yes php7.2-ldap -o Dpkg::Options::=\"--force-confdef\"
-o Dpkg::Options::=\"--force-confold\" && killall -HUP php-fpm"
- exec: cp private/typo3conf/AdditionalConfiguration.ddev.php private/typo3conf/AdditionalConfiguration.php
- exec: composer install
- exec: npm --prefix private/typo3conf/ext/t3olayout/Build install
- exec: npm --prefix private/typo3conf/ext/t3olayout/Build run-script build
- exec: vendor/bin/typo3cms install:generatepackagestates
- exec: vendor/bin/typo3cms install:extensionsetupifpossible
webimage_extra_packages: [php7.2-ldap]
use_dns_when_possible: true
timezone: Europe/Berlin
# This config.yaml was created with ddev version v1.8.0
# webimage: drud/ddev-webserver:v1.8.0
# dbimage: drud/ddev-dbserver:v1.8.0-10.2
# dbaimage: drud/phpmyadmin:v1.8.0
# bgsyncimage: drud/ddev-bgsync:v1.8.0
# This config.yaml was created with ddev version v1.9.1
# webimage: drud/ddev-webserver:v1.9.0
# dbimage: drud/ddev-dbserver:v1.9.0-10.2
# dbaimage: drud/phpmyadmin:v1.9.0
# bgsyncimage: drud/ddev-bgsync:v1.9.0
# However we do not recommend explicitly wiring these images into the
# config.yaml as they may break future versions of ddev.
# You can update this config.yaml using 'ddev config'.
......@@ -39,7 +37,7 @@ hooks:
# Key features of ddev's config.yaml:
# name: <projectname> # Name of the project, automatically provides
# http://projectname.ddev.local and https://projectname.ddev.local
# http://projectname.ddev.site and https://projectname.ddev.site
# type: <projecttype> # drupal6/7/8, backdrop, typo3, wordpress, php
......@@ -66,8 +64,8 @@ hooks:
# additional_hostnames:
# - somename
# - someothername
# would provide http and https URLs for "somename.ddev.local"
# and "someothername.ddev.local".
# would provide http and https URLs for "somename.ddev.site"
# and "someothername.ddev.site".
# additional_fqdns:
# - example.com
......@@ -115,6 +113,12 @@ hooks:
# The host port binding for the ddev-dbserver can be explicitly specified. It is dynamic
# unless explicitly specified.
# phpmyadmin_port: "1000"
# The PHPMyAdmin port can be changed from the default 8036
# mailhog_port: "1001"
# The MailHog port can be changed from the default 8025
# webimage_extra_packages: [php-yaml, php7.3-ldap]
# Extra Debian packages that are needed in the webimage can be added here
# This is ignored if a free-form .ddev/web-build/Dockerfile is provided
......@@ -123,10 +127,26 @@ hooks:
# Extra Debian packages that are needed in the dbimage can be added here
# This is ignored if a free-form .ddev/db-build/Dockerfile is provided
# use_dns_when_possible: true
# If the host has internet access and the domain configured can
# successfully be looked up, DNS will be used for hostname resolution
# instead of editing /etc/hosts
# Defaults to true
# project_tld: ddev.site
# The top-level domain used for project URLs
# The default "ddev.site" allows DNS lookup via a wildcard
# For backward compatibility this can be changed to "ddev.local"
# ngrok_args: --subdomain mysite --auth "user:pass"
# Provide extra flags to the "ngrok http" command, see
# https://ngrok.com/docs#http or run "ngrok http -h"
# provider: default # Currently either "default" or "pantheon"
#
# Many ddev commands can be extended to run tasks after the ddev command is
# executed.
# Many ddev commands can be extended to run tasks before or after the
# ddev command is executed, for example "post-start", "post-import-db",
# "pre-composer", "post-composer"
# See https://ddev.readthedocs.io/en/stable/users/extending-commands/ for more
# information on the commands that can be extended and the tasks you can define
# for them. Example:
......
# You can copy this Dockerfile.example to Dockerfile to add configuration
# or packages or anything else to your dbimage
ARG BASE_IMAGE=drud/ddev-dbserver:v1.6.0-10.1
FROM $BASE_IMAGE
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y telnet netcat
RUN echo "Built from drud/ddev-dbserver:v1.6.0-10.1" >/var/tmp/built-from.txt
# You can copy this Dockerfile.example to Dockerfile to add configuration
# or packages or anything else to your webimage
ARG BASE_IMAGE=drud/ddev-webserver:v1.8.0
FROM $BASE_IMAGE
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y php-yaml
RUN npm install --global gulp-cli
RUN ln -fs /usr/share/zoneinfo/Europe/Berlin /etc/localtime && dpkg-reconfigure --frontend noninteractive tzdata
# EditorConfig is awesome: http://EditorConfig.org
# top-most EditorConfig file
root = true
# Unix-style newlines with a newline ending every file
[*]
charset = utf-8
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
# CSS-Files
[*.css]
indent_style = space
indent_size = 4
# HTML-Files
[*.html]
indent_style = space
indent_size = 4
# TMPL-Files
[*.tmpl]
indent_style = space
indent_size = 4
# SCSS-Files
[*.scss]
indent_style = space
indent_size = 4
# JS-Files
[*.js]
indent_style = space
indent_size = 4
# JSON-Files
[*.json]
indent_style = space
indent_size = 4
# PHP-Files
[*.php]
indent_style = space
indent_size = 4
# ReST-Files
[*.rst]
indent_style = space
indent_size = 3
# MD-Files
[*.md]
indent_style = space
indent_size = 4
# YAML-Files
[{*.yaml,*.yml}]
indent_style = space
indent_size = 2
# package.json
# .travis.yml
# bower.json
[{package.json,.travis.yml,bower.json}]
indent_style = space
indent_size = 4
# TypoScript
[*.ts]
indent_style = space
indent_size = 4
[*.typoscript]
indent_style = space
indent_size = 4
# XLF-Files
[*.xlf]
indent_style = space
indent_size = 4
# SQL-Files
[*.sql]
indent_style = space
indent_size = 2
This diff is collapsed.
......@@ -43,7 +43,7 @@ class DocumentationService implements \TYPO3\CMS\Core\SingletonInterface
'pdf'
];
$documentationFile = PATH_site . $GLOBALS['TYPO3_CONF_VARS']['BE']['fileadminDir'] . 'currentdocumentationdata.json';
$this->docsInformation = json_decode(file_get_contents($documentationFile));
$this->docsInformation = json_decode(file_get_contents($documentationFile), true);
}
/**
......@@ -60,16 +60,19 @@ class DocumentationService implements \TYPO3\CMS\Core\SingletonInterface
if (empty($extensionKey) || empty($versionString)) {
throw new \Exception('Extension key and version string are required to build a documentation url');
}
$url = '';
$documentationLink = '';
$oldManualsInformation = json_decode(@file_get_contents(PATH_site . $GLOBALS['TYPO3_CONF_VARS']['BE']['fileadminDir'] . 'oldmanuals.json'), true);
$manualExists = isset($this->docsInformation->{$extensionKey}['docs'][$versionString]);
$documentationLink = null;
$url = null;
if ($manualExists) {
if (isset($this->docsInformation[$extensionKey]['docs'][$versionString])) {
// link to extension to get the latest manual
$url = $this->docsInformation->{$extensionKey}['docs'][$versionString]['url'];
// check if link is not broken
// need to remove the 200 response check due to change in header for docs.typo3.org
$url = $this->docsInformation[$extensionKey]['docs'][$versionString]['url'];
} elseif (isset($oldManualsInformation[$extensionKey])) {
$baseUrl = 'https://docs.typo3.org/typo3cms/extensions/';
$url = $baseUrl . $extensionKey . '/';
}
if ($url) {
$documentationLink = '<a href="' . $url . '">Extension Manual</a>';
}
......
......@@ -15,6 +15,7 @@ namespace T3o\TerFe2\Solr\IndexQueue;
*/
use ApacheSolrForTypo3\Solr\IndexQueue\Item;
use ApacheSolrForTypo3\Solr\System\Solr\Document\Document;
use T3o\TerFe2\Utility\VersionUtility;
use TYPO3\CMS\Core\Utility\GeneralUtility;
use TYPO3\CMS\Core\Utility\VersionNumberUtility;
......@@ -55,14 +56,14 @@ class TerIndexer extends \ApacheSolrForTypo3\Solr\IndexQueue\Indexer
*
* @param Item $item An index queue item
* @param int $language Language Id
* @return \Apache_Solr_Document The Solr document converted from the record
* @return \ApacheSolrForTypo3\Solr\System\Solr\Document\Document The Solr document converted from the record
*/
protected function itemToDocument(Item $item, $language = 0)
protected function itemToDocument(Item $item, $language = 0): Document
{
$document = null;
$itemRecord = $this->getFullItemRecord($item, $language);
if (!is_null($itemRecord)) {
if ($itemRecord !== null) {
$itemIndexingConfiguration = $this->getItemTypeConfiguration(
$item,
$language
......@@ -77,11 +78,11 @@ class TerIndexer extends \ApacheSolrForTypo3\Solr\IndexQueue\Indexer
}
/**
* @param \Apache_Solr_Document $document
* @param \ApacheSolrForTypo3\Solr\System\Solr\Document\Document $document
* @param array $itemRecord
* @return \Apache_Solr_Document
* @return \ApacheSolrForTypo3\Solr\System\Solr\Document\Document
*/
public function addSpecialFields(\Apache_Solr_Document $document, array $itemRecord)
public function addSpecialFields(Document $document, array $itemRecord): Document
{
$extension = $this->extensionRepository->findByUid($itemRecord['uid']);
......
plugin {
tx_solr {
solr {
host = solr
port = 8983
path = solr/t3o/
}
index {
queue {
ter_extension = 1
ter_extension.table = tx_terfe2_domain_model_extension
ter_extension.additionalWhereClause = last_version > 0
ter_extension.indexer = T3o\TerFe2\Solr\IndexQueue\TerIndexer
ter_extension.fields {
setRegister_ignored = LOAD_REGISTER
setRegister_ignored {
extensionVersion.cObject = SOLR_RELATION
extensionVersion.cObject {
localField = last_version
foreignLabelField = version_string
}
extensionKey.cObject = TEXT
extensionKey.cObject.field = ext_key
extensionState.cObject = SOLR_RELATION
extensionState.cObject {
localField = last_version
foreignLabelField = state
}
}
author = SOLR_CONTENT
author {
cObject = SOLR_RELATION
cObject {
localField = last_version
foreignLabelField = author
}
}
title = SOLR_CONTENT
title {
cObject = SOLR_RELATION
cObject {
localField = last_version
foreignLabelField = title
}
}
sortTitle_stringS = SOLR_CONTENT
sortTitle_stringS {
cObject = SOLR_RELATION
cObject {
localField = last_version
foreignLabelField = title
}
}
content = SOLR_CONTENT
content {
cObject = SOLR_RELATION
cObject {
localField = last_version
foreignLabelField = description
}
}
url = TEXT
url {
typolink.parameter = {$plugin.tx_solr.ter_detailpage}
typolink.additionalParams = &tx_terfe2_pi1[controller]=Extension&tx_terfe2_pi1[action]=show&tx_terfe2_pi1[extension]={field:uid}
typolink.additionalParams.insertData = 1
typolink.useCacheHash = 1
typolink.returnLast = url
}
extensionKey_textS = ext_key
extensionKey_stringS = ext_key
extensionVersion_stringS = TEXT
extensionVersion_stringS {
value = {register:extensionVersion}
insertData = 1
}
extensionState_stringS = TEXT
extensionState_stringS {
value = n/a
override {
data = register:extensionState
if {
isInList.data = register:extensionState
value = alpha,beta,stable,test,experimental,obsolete
}
}
}
extensionLastUpload_intS = SOLR_RELATION
extensionLastUpload_intS {
localField = last_version
foreignLabelField = upload_date
}
extensionLastUpload_tDateS = TEXT
extensionLastUpload_tDateS {
cObject = SOLR_RELATION
cObject {
localField = last_version
foreignLabelField = upload_date
}
date = Y-m-d\TH:i:s\Z
}
extensionDownloads_intS = downloads
extensionDownloadZipUrl_stringS = TEXT
extensionDownloadZipUrl_stringS {
typolink.parameter = {$plugin.tx_solr.ter_detailpage}
typolink.additionalParams = &tx_terfe2_pi1[controller]=Extension&tx_terfe2_pi1[action]=download&tx_terfe2_pi1[extension]={field:uid}&tx_terfe2_pi1[versionString]={register:extensionVersion}&tx_terfe2_pi1[format]=zip
typolink.additionalParams.insertData = 1
typolink.useCacheHash = 1
typolink.returnLast = url
}
keywords = SOLR_RELATION
keywords {
localField = tags
multiValue = 1
}
keywords_stringM = SOLR_RELATION
keywords_stringM {
localField = tags
multiValue = 1
}
}
}
}
search {
query {
// qf parameter http://wiki.apache.org/solr/DisMaxQParserPlugin#qf_.28Query_Fields.29
queryFields = extensionKey_stringS^200.0, extensionKey_textS^1.0, keywords^55.0, title^50.0, content^20.0, author_textWstM^1.0
boostQuery = outdated_boolS:"0"^500
sortBy = extensionLastUpload_tDateS desc
}
}
}
}
[globalVar = GP:tx_solr|q =]
[else]
plugin.tx_solr.search.query.sortBy =
[global]
plugin {
tx_solr {
solr {
host = solr
port = 8983
path = solr/t3o/
}
index {
queue {
ter_extension = 1
ter_extension.table = tx_terfe2_domain_model_extension
ter_extension.additionalWhereClause = last_version > 0
ter_extension.indexer = T3o\TerFe2\Solr\IndexQueue\TerIndexer
ter_extension.fields {
setRegister_ignored = LOAD_REGISTER
setRegister_ignored {
extensionVersion.cObject = SOLR_RELATION
extensionVersion.cObject {
localField = last_version
foreignLabelField = version_string
}
extensionKey.cObject = TEXT
extensionKey.cObject.field = ext_key
extensionState.cObject = SOLR_RELATION
extensionState.cObject {
localField = last_version
foreignLabelField = state
}
}
author = SOLR_CONTENT
author {
cObject = SOLR_RELATION
cObject {
localField = last_version
foreignLabelField = author
}
}
title = SOLR_CONTENT
title {
cObject = SOLR_RELATION
cObject {
localField = last_version
foreignLabelField = title
}
}
sortTitle_stringS = SOLR_CONTENT
sortTitle_stringS {
cObject = SOLR_RELATION
cObject {
localField = last_version
foreignLabelField = title
}
}
content = SOLR_CONTENT
content {
cObject = SOLR_RELATION
cObject {
localField = last_version
foreignLabelField = description
}
}
url = TEXT
url {
typolink.parameter = {$plugin.tx_solr.ter_detailpage}
typolink.additionalParams = &tx_terfe2_pi1[controller]=Extension&tx_terfe2_pi1[action]=show&tx_terfe2_pi1[extension]={field:uid}
typolink.additionalParams.insertData = 1
typolink.useCacheHash = 1
typolink.returnLast = url
}
extensionKey_textS = ext_key
extensionKey_stringS = ext_key
extensionVersion_stringS = TEXT
extensionVersion_stringS {
value = {register:extensionVersion}
insertData = 1
}
extensionState_stringS = TEXT
extensionState_stringS {
value = n/a
override {
data = register:extensionState
if {
isInList.data = register:extensionState
value = alpha,beta,stable,test,experimental,obsolete
}
}
}
extensionLastUpload_intS = SOLR_RELATION
extensionLastUpload_intS {
localField = last_version
foreignLabelField = upload_date
}
extensionLastUpload_tDateS = TEXT
extensionLastUpload_tDateS {
cObject = SOLR_RELATION
cObject {
localField = last_version
foreignLabelField = upload_date
}
date = Y-m-d\TH:i:s\Z
}
extensionDownloads_intS = downloads
extensionDownloadZipUrl_stringS = TEXT
extensionDownloadZipUrl_stringS {
typolink.parameter = {$plugin.tx_solr.ter_detailpage}
typolink.additionalParams = &tx_terfe2_pi1[controller]=Extension&tx_terfe2_pi1[action]=download&tx_terfe2_pi1[extension]={field:uid}&tx_terfe2_pi1[versionString]={register:extensionVersion}&tx_terfe2_pi1[format]=zip
typolink.additionalParams.insertData = 1
typolink.useCacheHash = 1
typolink.returnLast = url
}
keywords = SOLR_RELATION
keywords {
localField = tags
multiValue = 1
}
keywords_stringM = SOLR_RELATION
keywords_stringM {
localField = tags
multiValue = 1
}
}
}
}
search {
query {
// qf parameter http://wiki.apache.org/solr/DisMaxQParserPlugin#qf_.28Query_Fields.29
queryFields = extensionKey_stringS^200.0, extensionKey_textS^1.0, keywords^55.0, title^50.0, content^20.0, author_textWstM^1.0
boostQuery = outdated_boolS:"0"^500
sortBy = extensionLastUpload_tDateS desc
}
}
}
}
[globalVar = GP:tx_solr|q =]
[else]
plugin.tx_solr.search.query.sortBy =
[global]
......@@ -2,6 +2,6 @@
# JSON output configuration ot the extension "ter_fe2"
# ======================================================================
plugin.tx_terfe2.jsonOutput {
# cat=TER Frontend - JSON/json/100; type=int+; label=Type number of the JSON page object
typeNum = 95832
}
\ No newline at end of file
# cat=TER Frontend - JSON/json/100; type=int+; label=Type number of the JSON page object
typeNum = 95832
}
......@@ -2,19 +2,19 @@
# JSON output configuration ot the extension "ter_fe2"
# ======================================================================
plugin.tx_terfe2.settings.jsonOutput {
typeNum = {$plugin.tx_terfe2.jsonOutput.typeNum}
typeNum = {$plugin.tx_terfe2.jsonOutput.typeNum}
}
jsonOutput = PAGE
jsonOutput {
typeNum = {$plugin.tx_terfe2.jsonOutput.typeNum}
typeNum = {$plugin.tx_terfe2.jsonOutput.typeNum}
10 =< tt_content.list.20.terfe2_pi1
10 =< tt_content.list.20.terfe2_pi1
config {
disableAllHeaderCode = 1
additionalHeaders = Content-type:application/json
xhtml_cleaning = 0
admPanel = 0
}
}
\ No newline at end of file
config {
disableAllHeaderCode = 1
additionalHeaders = Content-type:application/json
xhtml_cleaning = 0
admPanel = 0
}
}
......@@ -2,36 +2,36 @@
# RSS output configuration ot the extension "ter_fe2"
# ======================================================================
plugin.tx_terfe2.rssOutput {
# cat=TER Frontend - RSS/rss/100; type=int+; label=Type number of the RSS page object
typeNum = 837
# cat=TER Frontend - RSS/rss/100; type=int+; label=Type number of the RSS page object
typeNum = 837
# cat=TER Frontend - RSS/rss/110; type=string; label=Title of the RSS feed
title = TYPO3 - Latest 50 extensions
# cat=TER Frontend - RSS/rss/110; type=string; label=Title of the RSS feed
title = TYPO3 - Latest 50 extensions
# cat=TER Frontend - RSS/rss/120; type=string; label=Link to website
link = http://extensions.typo3.org/
# cat=TER Frontend - RSS/rss/120; type=string; label=Link to website
link = http://extensions.typo3.org/
# cat=TER Frontend - RSS/rss/130; type=string; label=Description
description = latest 50 extensions on extensions.typo3.org
# cat=TER Frontend - RSS/rss/130; type=string; label=Description
description = latest 50 extensions on extensions.typo3.org
# cat=TER Frontend - RSS/rss/140; type=string; label=Language
language = en
# cat=TER Frontend - RSS/rss/140; type=string; label=Language
language = en
# cat=TER Frontend - RSS/rss/150; type=string; label=Small image
image =
# cat=TER Frontend - RSS/rss/150; type=string; label=Small image
image =
# cat=TER Frontend - RSS/rss/160; type=int+; label=Image width
imageWidth =
# cat=TER Frontend - RSS/rss/160; type=int+; label=Image width
imageWidth =
# cat=TER Frontend - RSS/rss/170; type=int+; label=Image height
imageHeight =
# cat=TER Frontend - RSS/rss/170; type=int+; label=Image height
imageHeight =
# cat=TER Frontend - RSS/rss/180; type=string; label=RSS documentation
docs = http://blogs.law.harvard.edu/tech/rss
# cat=TER Frontend - RSS/rss/180; type=string; label=RSS documentation
docs = http://blogs.law.harvard.edu/tech/rss
# cat=TER Frontend - RSS/rss/190; type=string; label=Webmaster email address
webmaster =
# cat=TER Frontend - RSS/rss/190; type=string; label=Webmaster email address
webmaster =
# cat=TER Frontend - RSS/rss/200; type=string; label=Date format
dateFormat = D, j M Y H:i:s O
# cat=TER Frontend - RSS/rss/200; type=string; label=Date format
dateFormat = D, j M Y H:i:s O
}
......@@ -2,53 +2,53 @@
# RSS output configuration ot the extension "ter_fe2"
# ======================================================================
plugin.tx_terfe2.settings.rss.channel {
typeNum = {$plugin.tx_terfe2.rssOutput.typeNum}
title = {$plugin.tx_terfe2.rssOutput.title}
link = {$plugin.tx_terfe2.rssOutput.link}
description = {$plugin.tx_terfe2.rssOutput.description}
language = {$plugin.tx_terfe2.rssOutput.language}
image = {$plugin.tx_terfe2.rssOutput.image}
imageWidth = {$plugin.tx_terfe2.rssOutput.imageWidth}
imageHeight = {$plugin.tx_terfe2.rssOutput.imageHeight}
docs = {$plugin.tx_terfe2.rssOutput.docs}
webmaster = {$plugin.tx_terfe2.rssOutput.webmaster}
dateFormat = {$plugin.tx_terfe2.rssOutput.dateFormat}
typeNum = {$plugin.tx_terfe2.rssOutput.typeNum}
title = {$plugin.tx_terfe2.rssOutput.title}
link = {$plugin.tx_terfe2.rssOutput.link}
description = {$plugin.tx_terfe2.rssOutput.description}
language = {$plugin.tx_terfe2.rssOutput.language}
image = {$plugin.tx_terfe2.rssOutput.image}
imageWidth = {$plugin.tx_terfe2.rssOutput.imageWidth}
imageHeight = {$plugin.tx_terfe2.rssOutput.imageHeight}
docs = {$plugin.tx_terfe2.rssOutput.docs}
webmaster = {$plugin.tx_terfe2.rssOutput.webmaster}
dateFormat = {$plugin.tx_terfe2.rssOutput.dateFormat}
}
[globalVar = TSFE:type = {$plugin.tx_terfe2.rssOutput.typeNum}]
config {
disableAllHeaderCode = 1
xhtml_cleaning = none
admPanel = 0
debug = 0
disablePrefixComment = 1
metaCharset = utf-8
additionalHeaders.10.header = Content-Type:application/rss+xml;charset=utf-8
absRefPrefix = {$plugin.tx_terfe2.rssOutput.link}
}
config {
disableAllHeaderCode = 1
xhtml_cleaning = none
admPanel = 0
debug = 0
disablePrefixComment = 1
metaCharset = utf-8
additionalHeaders.10.header = Content-Type:application/rss+xml;charset=utf-8
absRefPrefix = {$plugin.tx_terfe2.rssOutput.link}
}
terRss = PAGE
terRss {
typeNum = {$plugin.tx_terfe2.rssOutput.typeNum}
10 = USER
10 {
userFunc = TYPO3\CMS\Extbase\Core\Bootstrap->run
vendorName = T3o
extensionName = TerFe2
pluginName = Pi1
controller = Extension
switchableControllerActions {
Extension {
1 = listLatest
}
}
terRss = PAGE
terRss {
typeNum = {$plugin.tx_terfe2.rssOutput.typeNum}
10 = USER
10 {
userFunc = TYPO3\CMS\Extbase\Core\Bootstrap->run
vendorName = T3o
extensionName = TerFe2
pluginName = Pi1
controller = Extension
switchableControllerActions {
Extension {
1 = listLatest
}
}
settings < plugin.tx_terfe2.settings
settings {
limit = 50
detailPid = {$plugin.tx_terfe2.settings.pages.extensionDetailPID}
startingpoint = {$plugin.tx_terfe2.persistence.storagePid}
}
}
settings < plugin.tx_terfe2.settings
settings {
limit = 50
detailPid = {$plugin.tx_terfe2.settings.pages.extensionDetailPID}
startingpoint = {$plugin.tx_terfe2.persistence.storagePid}
}
}
}
[global]
......@@ -52,7 +52,7 @@
<h4 class="alert-header">
<span class="ter-ext-state-beta"><i class="fa fa-exclamation-triangle"></i></span>
Abandoned extension<br>
<small class="text-muted">This extension has no maintainer at the moment. If you like to get the maintainer of this extension, fill out our <f:link.page pageUid="{settings.pages.abandonedExtensionFormPid}">registration form</f:link.page>.</small>
<small class="text-muted">This extension has no maintainer at the moment. If you like to become the maintainer of this extension, fill out our <f:link.page pageUid="{settings.pages.abandonedExtensionFormPid}">registration form</f:link.page>.</small>
</h4>
</div>
</f:if>
......
config {
doctype = html5
absRefPrefix = /
language = en
locale_all = en_US
tx_realurl_enable = 1
compressCss = 1
compressJs = 1
concatenateCss = 1
concatenateJs = 1
}
\ No newline at end of file
......@@ -16,5 +16,13 @@ plugin.tx_ter_pi1.pid = 2
# wsdl Namespace for the soap server
plugin.tx_ter_pi1.wsdlNamespace = https://extensions.typo3.org/wsdl/tx_ter/
[applicationContext = Production/Stage]
plugin.tx_ter_pi1.wsdlNamespace = https://extensions-stage.typo3.org/wsdl/tx_ter/
plugin.tx_ter_pi1.wsdlNamespace = https://extensions-stage.typo3.org/wsdl/tx_ter/
[global]
plugin.tx_solr {
view {
templateRootPath = EXT:ter_layout/Resources/Private/Templates/Solr/
partialRootPath = EXT:ter_layout/Resources/Private/Partials/Solr/
layoutRootPath = EXT:ter_layout/Resources/Private/Layouts/Solr/
}
}
......@@ -4,5 +4,5 @@
<INCLUDE_TYPOSCRIPT: source="FILE:EXT:ter/resources/static/setup.txt">
<INCLUDE_TYPOSCRIPT: source="FILE:EXT:ter_fe2/Configuration/TypoScript/Default/setup.txt">
<INCLUDE_TYPOSCRIPT: source="FILE:EXT:ter_layout/Configuration/TypoScript/Page.ts">
<INCLUDE_TYPOSCRIPT: source="DIR:EXT:ter_layout/Configuration/TypoScript/Ext/" extensions="ts">
<INCLUDE_TYPOSCRIPT: source="FILE:EXT:ter_layout/Configuration/TypoScript/Page.typoscript">
<INCLUDE_TYPOSCRIPT: source="DIR:EXT:ter_layout/Configuration/TypoScript/Ext/" extensions="typoscript">
page {
headerData {
1501157682 = TEXT
1501157682.value(
<!-- Piwik -->
<script type="text/javascript">
var _paq = _paq || [];
/* tracker methods like "setCustomDimension" should be called before "trackPageView" */
_paq.push(['trackPageView']);
_paq.push(['enableLinkTracking']);
_paq.push(['setVisitorCookieTimeout', '2592000']);
_paq.push(['setSessionCookieTimeout', '0']);
_paq.push(['setDoNotTrack', true]);
(function() {
var u="//piwik.typo3.org/";
_paq.push(['setTrackerUrl', u+'piwik.php']);
_paq.push(['setSiteId', '38']);
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
g.type='text/javascript'; g.async=true; g.defer=true; g.src=u+'piwik.js'; s.parentNode.insertBefore(g,s);
})();
</script>
<noscript><p><img src=//piwik.typo3.org/piwik.php?idsite=39&rec=1” style=“border:0;” alt=“” /></p></noscript>
<!-- End Piwik Code -->
)
}
}
page {
headerData {
1501157682 = TEXT
1501157682.value (
<!-- Piwik -->
<script type="text/javascript">
var _paq = _paq || [];
/* tracker methods like "setCustomDimension" should be called before "trackPageView" */
_paq.push(['trackPageView']);
_paq.push(['enableLinkTracking']);
_paq.push(['setVisitorCookieTimeout', '2592000']);
_paq.push(['setSessionCookieTimeout', '0']);
_paq.push(['setDoNotTrack', true]);
(function() {
var u="//piwik.typo3.org/";
_paq.push(['setTrackerUrl', u+'piwik.php']);
_paq.push(['setSiteId', '38']);
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
g.type='text/javascript'; g.async=true; g.defer=true; g.src=u+'piwik.js'; s.parentNode.insertBefore(g,s);
})();
</script>
<noscript><p><img src=“//piwik.typo3.org/piwik.php?idsite=39&rec=1” style=“border:0;” alt=“” /></p></noscript>
<!-- End Piwik Code -->
)
}
}
plugin.tx_solr {
view {
layoutRootPaths {
0 = EXT:solr/Resources/Private/Layouts
}
partialRootPaths {
0 = EXT:solr/Resources/Private/Partials
100 = EXT:ter_layout/Resources/Private/Partials/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 {
ignoreGlobalQParameter = 1
query {
allowEmptyQuery = 1
}
results {
resultsHighlighting = 1
resultsHighlighting {
wrap = <mark>|</mark>
}
}
faceting = 1
faceting {
facetLimit = 25
facets >
facets {
typo3 {
label = Works with TYPO3
field = typo3support_stringM
partialName = OptionsTypo3
itemClass = success
sortBy = alpha
}
tags {
label = Extension tags
field = keywords_stringM
partialName = OptionsTags
itemClass = dark
prefix = #
}
}
}
}
plugin.tx_solr {
search {
ignoreGlobalQParameter = 1
query {
allowEmptyQuery = 1
}
results {
resultsHighlighting = 1
resultsHighlighting {
wrap = <mark>|</mark>
}
}
faceting = 1
faceting {
facetLimit = 25
facets >
facets {
typo3 {
label = Works with TYPO3
field = typo3support_stringM
partialName = OptionsTypo3
itemClass = success
sortBy = alpha
}
tags {
label = Extension tags
field = keywords_stringM
partialName = OptionsTags
itemClass = dark
prefix = #
}
}
}
}
cssFiles.results =
settings.maximumNumberOfLinks = 6
}
page {
includeCSS {
ter = EXT:ter_layout/Resources/Public/Css/ter.css
}
}
page {
includeCSS {
ter = EXT:ter_layout/Resources/Public/Css/ter.css
}
}
lib {
AsideMenu = HMENU
AsideMenu {
entryLevel = 0
wrap (
<div class="a" id="aside">
<ul id="nav-aside">
|
</ul>
<div class="aside-shade-head"></div>
<div class="aside-shade-cont"></div>
<div class="aside-shade-foot"></div>
</div>
)
1 = TMENU
1 {
expAll = 1
NO = 1
NO {
linkWrap = <li class="nav-aside-lvl1"> | </li>
}
}
}
Logo = IMAGE
Logo {
file = EXT:ter_layout/Resources/Public/Images/typo3-logo.png
titleText = TYPO3
altText = TYPO3
stdWrap {
typolink {
parameter = https://www.typo3.org _top
ATagParams = id="logo"
}
}
}
FooterSponsorLogos = COA
FooterSponsorLogos {
# 10: punkt.de
10 = IMAGE
10 {
file = EXT:ter_layout/Resources/Public/Images/footer-punkt.de.png
altText =
titleText =
stdWrap {
typolink {
parameter = http://www.punkt.de _blank
wrap (
<div class="csc-textpic-image csc-textpic-firstcol" style="width:126px;">
<div>
|
</div>
</div>
)
}
}
}
# 20: SourceForge
20 = IMAGE
20 {
file = EXT:ter_layout/Resources/Public/Images/footer-sourceforge.png
altText =
titleText =
stdWrap {
typolink {
parameter = http://www.sourceforge.net/projects/typo3 _blank
wrap (
<div class="csc-textpic-image csc-textpic-lastcol" style="width:162px;">
<div>
|
</div>
</div>
)
}
}
}
wrap (
<div class="csc-textpic csc-textpic-left csc-textpic-above">
<div class="csc-textpic-imagewrap">
|
</div>
</div>
)
}
SolrSearch < plugin.tx_solr_PiSearch_Search
}
<div class="tx_solr">
<div class="row">
<div class="col-md-12">
<f:render section="content" />
</div>
</div>
</div>
......@@ -6,7 +6,7 @@
<div id="tx-solr-faceting" class="d-none d-lg-block d-xl-block">
<div class="card-container">
<f:if condition="{resultSet.facets.used -> f:count()}">
<div class="card card-size-large" id="tx-solr-facets-in-use">
<div class="card card-size-large mb-3" id="tx-solr-facets-in-use">
<div class="card-header">
<s:translate key="faceting_resultsNarrowedBy">Used facets</s:translate>
</div>
......@@ -24,7 +24,7 @@
</ul>
</div>
<div class="">
<a href="{s:uri.facet.removeAllFacets()}" class="btn btn-primary btn-block solr-ajaxified">
<a href="{s:uri.facet.removeAllFacets()}" class="btn btn-primary btn-block solr-ajaxified mb-0">
<strong><i class="fa fa-times"></i>
<s:translate key="faceting_removeAllFilters">Remove all filters</s:translate>
</strong>
......@@ -37,7 +37,7 @@
<div class="facet-area-main">
<div class="solr-facets-available secondaryContentSection">
<f:for each="{areaFacets}" as="facet">
<div class="card card-size-large">
<div class="card card-size-large mb-3">
<f:render partial="Facets/{facet.partialName}" arguments="{resultSet:resultSet, facet:facet}" />
</div>
</f:for>
......
......@@ -2,14 +2,14 @@
xmlns:f="http://typo3.org/ns/TYPO3/Fluid/ViewHelpers"
xmlns:s="http://typo3.org/ns/ApacheSolrForTypo3/Solr/ViewHelpers/">
<f:layout name="Main" />
<f:layout name="Fullwidth" />
<f:section name="main">
<f:section name="content">
<div class="container-fluid">
<f:render partial="Search/Form" section="Form" arguments="{search:search, additionalFilters:additionalFilters, pluginNamespace: pluginNamespace, resultSet: resultSet}" />
<f:if condition="{resultSet.usedSearch.numberOfResults}">
<f:if condition="{resultSet.allResultCount}">
<f:else>
<div class="alert alert-danger mt-3">
<s:translate key="no_results_nothing_found" arguments="{0: resultSet.usedQuery.queryString}">Nothing found for "%s".</s:translate>
......@@ -41,10 +41,10 @@
</f:then>
</f:if>
<f:if condition="{hasSearched}">
<f:if condition="{resultSet.hasSearched}">
<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:if condition="{resultSet.usedQuery.options.query -> f:format.case(mode:'lower')} == {documents.0.extensionKey_stringS}">
<f:render partial="Result/Document" section="DocumentWrap" arguments="{resultSet:resultSet, document:documents.0, exactMatchFound: 1}" />
<f:variable name="exactMatchFound" value="1" />
</f:if>
......
# t3olayout loads its typoscript via ext_typoscript_setup.txt which is a bad implementation and prevents
# overriding in many cases, so we also have to provide an ext_typoscript_setup.txt
[page|uid = 3] && [globalString = GP:tx_terfe2_pi1|action = ?*]
page.meta {
og:title >
og:title >
}
[global]
......@@ -4,7 +4,7 @@ return [
'debug' => true,
'explicitADmode' => 'explicitAllow',
'installToolPassword' => '$P$CNFL2v68eXaD3NFqVuwQwGL2ButeOs1',
'loginSecurityLevel' => 'rsa',
'loginSecurityLevel' => 'normal',
],
'DB' => [
'Connections' => [
......@@ -40,7 +40,7 @@ return [
'FE' => [
'cHashExcludedParameters' => 'fbclid',
'debug' => true,
'loginSecurityLevel' => 'rsa',
'loginSecurityLevel' => 'normal',
'pageNotFoundOnCHashError' => false,
'pageNotFound_handling' => '404',
],
......
paths:
- extensions/
filePatterns:
- "*.tsconfig"
- "*.typoscript"
- "ext_typoscript_*.txt"
sniffs:
- class: Indentation
parameters:
useSpaces: true
indentPerLevel: 2
indentConditions: false
- class: DeadCode
- class: OperatorWhitespace
- class: RepeatingRValue
disabled: true
- class: EmptySection
- class: NestingConsistency
parameters:
commonPathPrefixThreshold: 1