Commit 6a7fc354 authored by Thomas Löffler's avatar Thomas Löffler

Rewrites realurl configuration for main extension view

parent a5693ab8
Pipeline #1713 passed with stages
in 2 minutes and 53 seconds
<?php
$TYPO3_CONF_VARS['FE']['addRootLineFields'] .= ',tx_realurl_pathsegment';
$GLOBALS['TYPO3_CONF_VARS']['FE']['addRootLineFields'] .= ',tx_realurl_pathsegment';
function user_getPreProc_Rewrites()
{
return $rewrite = [
];
}
function user_encodeSpURL_postProc(&$params, &$ref)
{
$rewrite = user_getPreProc_Rewrites();
$search = array_keys($rewrite);
$replace = array_values($rewrite);
$params['URL'] = str_replace($search, $replace, $params['URL']);
}
function user_decodeSpURL_preProc(&$params, &$ref)
{
$rewrite = user_getPreProc_Rewrites();
$search = array_values($rewrite);
$replace = array_keys($rewrite);
$params['URL'] = str_replace($search, $replace, $params['URL']);
}
$TYPO3_CONF_VARS['EXTCONF']['realurl'] = [
'encodeSpURL_postProc' => ['user_encodeSpURL_postProc'],
'decodeSpURL_preProc' => ['user_decodeSpURL_preProc'],
];
$TYPO3_CONF_VARS['EXTCONF']['realurl']['_DEFAULT'] = [
'cache' => [
//'banUrlsRegExp' => '',
//'disable' => FALSE,
],
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['realurl']['_DEFAULT'] = [
'init' => [
'appendMissingSlash' => 'ifNotFile,redirect[301]',
//'emptySegmentValue' => '',
//'emptyUrlReturnValue' => '',
'postVarSet_failureMode' => '',
//'reapplyAbsRefPrefix' => 0,
],
'fileName' => [
'acceptHTMLsuffix' => false,
......@@ -56,57 +22,55 @@ $TYPO3_CONF_VARS['EXTCONF']['realurl']['_DEFAULT'] = [
],
'preVars' => [
[
'GETvar' => 'no_cache',
'valueMap' => [
'nc' => 1,
],
'noMatch' => 'bypass',
],
[
'GETvar' => 'L',
'valueMap' => [
// 'de' => 1, /* @todo: configure me for the system languages */
'' => 0,
],
'noMatch' => 'bypass',
],
],
'postVarSets' => [
'_DEFAULT' => [
'terfe2-controller' => [
[
'GETvar' => 'tx_terfe2_pi1[controller]',
'noMatch' => 'bypass',
'fixedPostVars' => [
'extension' => [
[
'GETvar' => 'tx_terfe2_pi1[controller]',
'valueMap' => [
'Extension' => ''
],
'noMatch' => 'bypass'
],
'extension' => [
[
'GETvar' => 'tx_terfe2_pi1[action]',
[
'GETvar' => 'tx_terfe2_pi1[action]',
'valueMap' => [
'detail' => '',
'download' => 'download'
],
[
'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' => [
'strtolower' => 1,
'spaceCharacter' => '-',
],
'enable404forInvalidAlias' => 1,
'autoUpdate' => 1,
'expireDays' => 180,
'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' => [
'strtolower' => 1,
'spaceCharacter' => '-',
],
'enable404forInvalidAlias' => 1,
'autoUpdate' => 1,
'expireDays' => 180,
],
[
'GETvar' => 'tx_terfe2_pi1[versionString]',
],
[
'GETvar' => 'tx_terfe2_pi1[format]',
],
],
[
'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