Commit 182ecdc7 authored by Jens Jacobsen's avatar Jens Jacobsen

[TASK] Add basic realurl configuration

Adding the basic configuration for the extension show and download actions. No .htaccess yet.
parent 57e8f1cc
......@@ -22,6 +22,7 @@ return [
'EXT' => [
'extConf' => [
'ig_ldap_sso_auth' => 'a:18:{s:18:"checkConfiguration";s:1:"0";s:21:"throwExceptionAtLogin";s:1:"1";s:22:"forceLowerCaseUsername";s:1:"1";s:26:"enableBELDAPAuthentication";s:1:"0";s:17:"TYPO3BEGroupExist";s:1:"0";s:16:"TYPO3BEUserExist";s:1:"0";s:10:"BEfailsafe";s:1:"0";s:27:"TYPO3BEGroupsNotSynchronize";s:1:"0";s:12:"keepBEGroups";s:1:"0";s:11:"enableBESSO";s:1:"0";s:26:"enableFELDAPAuthentication";s:1:"1";s:31:"TYPO3FEDeleteUserIfNoLDAPGroups";s:1:"0";s:32:"TYPO3FEDeleteUserIfNoTYPO3Groups";s:1:"0";s:17:"TYPO3FEGroupExist";s:1:"0";s:16:"TYPO3FEUserExist";s:1:"0";s:27:"TYPO3FEGroupsNotSynchronize";s:1:"1";s:12:"keepFEGroups";s:1:"1";s:11:"enableFESSO";s:1:"0";}',
'realurl' => 'a:6:{s:10:"configFile";s:34:"typo3conf/RealurlConfiguration.php";s:14:"enableAutoConf";s:1:"1";s:14:"autoConfFormat";s:1:"0";s:17:"segTitleFieldList";s:0:"";s:12:"enableDevLog";s:1:"0";s:10:"moduleIcon";s:1:"0";}',
'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:{}',
......
<?php
$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,
],
'init' => [
'appendMissingSlash' => 'ifNotFile,redirect[301]',
//'emptySegmentValue' => '',
//'emptyUrlReturnValue' => '',
'postVarSet_failureMode' => '',
//'reapplyAbsRefPrefix' => 0,
],
'fileName' => [
'acceptHTMLsuffix' => false,
'defaultToHTMLsuffixOnPrev' => false,
'index' => [
],
],
'pagePath' => [
'expireDays' => 2,
'languageExceptionUids' => '',
'languageGetVar' => 'L',
'rootpage_id' => 1,
'spaceCharacter' => '-',
],
'preVars' => [
[
'GETvar' => 'no_cache',
'valueMap' => [
'nc' => 1,
],
'noMatch' => 'bypass',
],
[
'GETvar' => 'L',
'valueMap' => [
// 'de' => 1, /* @todo: configure me for the system languages */
],
'noMatch' => 'bypass',
],
],
'postVarSets' => [
'_DEFAULT' => [
'terfe2-controller' => [
[
'GETvar' => 'tx_terfe2_pi1[controller]',
'noMatch' => 'bypass',
],
],
'extension' => [
[
'GETvar' => 'tx_terfe2_pi1[action]',
'valueMap' => [
'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,
],
],
[
'GETvar' => 'tx_terfe2_pi1[versionString]',
],
[
'GETvar' => 'tx_terfe2_pi1[format]',
],
],
],
],
];
config {
absRefPrefix = /
tx_realurl_enable = 1
}
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