Commit 86a93eb0 authored by Thomas Löffler's avatar Thomas Löffler

Use versions in composer for project extensions and remove realurl config

parent 5ab50fcc
Pipeline #7909 passed with stages
in 5 minutes and 36 seconds
.idea
/vendor
/var
/private
!/private/typo3conf/LocalConfiguration.php
!/private/typo3conf/AdditionalConfiguration.ddev.php
......
This diff is collapsed.
......@@ -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