Commit 736eaa4e authored by Thomas Löffler's avatar Thomas Löffler

Merge branch 'develop' into task/use-direct-calls-for-ter-fe

parents 09812649 045c356a
Pipeline #7919 failed with stages
in 57 seconds
.idea
/vendor
/var
/private
!/private/typo3conf/LocalConfiguration.php
!/private/typo3conf/AdditionalConfiguration.ddev.php
......
This diff is collapsed.
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xmlns:f="http://typo3.org/ns/fluid/ViewHelpers" data-namespace-typo3-fluid="true">
<div class="container">
<div class="tx_terfe2">
<f:flashMessages as="flashMessages">
<f:if condition="{flashMessages}">
<f:for each="{flashMessages}" as="flashMessage">
<div class="alert {flashMessage.class}" role="alert">
<f:if condition="{flashMessage.title}">
<f:then>
<h4 class="alert-heading"><strong class="fa fa-{flashMessage.iconName}"></strong> {flashMessage.title}</h4>
<f:format.html>{flashMessage.message}</f:format.html>
</f:then>
<f:else>
<strong class="fa fa-{flashMessage.iconName}"></strong> <f:format.html>{flashMessage.message}</f:format.html>
</f:else>
</f:if>
</div>
</f:for>
</f:if>
</f:flashMessages>
<div class="tx_terfe2_content">
<f:render section="main" />
</div>
</div>
<div class="tx_terfe2">
<f:flashMessages as="flashMessages">
<f:if condition="{flashMessages}">
<f:for each="{flashMessages}" as="flashMessage">
<f:variable name="class" value="alert-success" />
<f:if condition="{flashMessage.severity} == 1">
<f:variable name="class" value="alert-warning" />
</f:if>
<f:if condition="{flashMessage.severity} == 2">
<f:variable name="class" value="alert-danger" />
</f:if>
<div class="alert {class}" role="alert">
<f:if condition="{flashMessage.title}">
<f:then>
<h4 class="alert-heading"><strong class="fa fa-{flashMessage.iconName}"></strong> {flashMessage.title}</h4>
<f:format.html>{flashMessage.message}</f:format.html>
</f:then>
<f:else>
<strong class="fa fa-{flashMessage.iconName}"></strong>
<f:format.html>{flashMessage.message}</f:format.html>
</f:else>
</f:if>
</div>
</f:for>
</f:if>
</f:flashMessages>
<div class="tx_terfe2_content">
<f:render section="main" />
</div>
</div>
</div>
</html>
......@@ -18,6 +18,7 @@
"issues": "https://git-t3o.typo3.org/t3o/ter/issues"
},
"license": "GPL-2.0+",
"version": "0.1.0",
"require": {
"typo3/cms-core": "^8.7 || ^9.5"
},
......
<?php
$GLOBALS['TYPO3_CONF_VARS']['FE']['addRootLineFields'] .= ',tx_realurl_pathsegment';
if (!function_exists('encodeTitleUserProc')) {
function encodeTitleUserProc($params)
{
return $params['pObj']->getUtility()->convertToSafeString($params['title'], $params['encodingConfiguration']['spaceCharacter']);
}
}
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['realurl']['_DEFAULT'] = [
'init' => [
'appendMissingSlash' => 'ifNotFile,redirect[301]',
'postVarSet_failureMode' => '',
],
'fileName' => [
'acceptHTMLsuffix' => false,
'defaultToHTMLsuffixOnPrev' => false,
'index' => [
],
],
'pagePath' => [
'expireDays' => 2,
'languageExceptionUids' => '',
'languageGetVar' => 'L',
'rootpage_id' => 1,
'spaceCharacter' => '-',
],
'preVars' => [
[
'GETvar' => 'L',
'valueMap' => [
'' => 0,
],
'noMatch' => 'bypass',
],
],
'postVarSets' => [
'_DEFAULT' => [
'page' => [
[
'GETvar' => 'tx_solr[page]'
]
]
]
],
'fixedPostVars' => [
'extension' => [
[
'GETvar' => 'tx_terfe2_pi1[controller]',
'valueMap' => [
'Extension' => '',
'Review' => 'security-review'
],
'noMatch' => 'bypass'
],
[
'GETvar' => 'tx_terfe2_pi1[action]',
'valueMap' => [
'show' => '',
'download' => 'download',
'update' => 'update'
],
'noMatch' => 'bypass'
],
[
'GETvar' => 'tx_terfe2_pi1[extension]',
'lookUpTable' => [
'table' => 'tx_terfe2_domain_model_extension',
'id_field' => 'uid',
'alias_field' => 'ext_key',
'addWhereClause' => ' AND deleted=0 AND hidden=0',
'useUniqueCache' => 1,
'useUniqueCache_conf' => [
'encodeTitle_userProc' => 'encodeTitleUserProc',
'strtolower' => 1,
'spaceCharacter' => '_',
],
'enable404forInvalidAlias' => 1,
'autoUpdate' => 1,
'expireDays' => 180,
],
],
[
'GETvar' => 'tx_terfe2_pi1[versionString]',
],
[
'GETvar' => 'tx_terfe2_pi1[format]',
],
],
3 => 'extension'
],
];
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