Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
services
t3o sites
typo3.org
typo3.org
Commits
ba92e803
Commit
ba92e803
authored
Jul 15, 2017
by
Jens Jacobsen
Committed by
Christian Knauf
Nov 02, 2017
Browse files
Activate realurl and add basic configuration for pages and ext:news
parent
1bc19d48
Changes
3
Hide whitespace changes
Inline
Side-by-side
html/typo3conf/LocalConfiguration.php
View file @
ba92e803
...
...
@@ -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:"";}'
,
'rte_ckeditor'
=>
'a: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;}}'
,
...
...
html/typo3conf/RealurlConfiguration.php
0 → 100644
View file @
ba92e803
<?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'
,
],
],
'fixedPostVars'
=>
[
'newsDetailConfiguration'
=>
[
[
'GETvar'
=>
'tx_news_pi1[action]'
,
'valueMap'
=>
[
'detail'
=>
''
,
],
'noMatch'
=>
'bypass'
],
[
'GETvar'
=>
'tx_news_pi1[controller]'
,
'valueMap'
=>
[
'News'
=>
''
,
],
'noMatch'
=>
'bypass'
],
[
'GETvar'
=>
'tx_news_pi1[news]'
,
'lookUpTable'
=>
[
'table'
=>
'tx_news_domain_model_news'
,
'id_field'
=>
'uid'
,
'alias_field'
=>
'title'
,
'addWhereClause'
=>
' AND NOT deleted'
,
'useUniqueCache'
=>
1
,
'useUniqueCache_conf'
=>
[
'strtolower'
=>
1
,
'spaceCharacter'
=>
'-'
],
'languageGetVar'
=>
'L'
,
'languageExceptionUids'
=>
''
,
'languageField'
=>
'sys_language_uid'
,
'transOrigPointerField'
=>
'l10n_parent'
,
'expireDays'
=>
180
,
],
],
],
'185'
=>
'newsDetailConfiguration'
,
],
'postVarSets'
=>
[
'_DEFAULT'
=>
[
'controller'
=>
[
[
'GETvar'
=>
'tx_news_pi1[action]'
,
'noMatch'
=>
'bypass'
],
[
'GETvar'
=>
'tx_news_pi1[controller]'
,
'noMatch'
=>
'bypass'
]
],
'dateFilter'
=>
[
[
'GETvar'
=>
'tx_news_pi1[overwriteDemand][year]'
,
],
[
'GETvar'
=>
'tx_news_pi1[overwriteDemand][month]'
,
],
],
'page'
=>
[
[
'GETvar'
=>
'tx_news_pi1[@widget_0][currentPage]'
,
],
],
],
],
];
html/typo3conf/ext/t3org_layout/Configuration/TypoScript/Ext/Realurl.ts
0 → 100644
View file @
ba92e803
config
{
absRefPrefix
=
/
tx_realurl_enable
=
1
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment