RealURL - čitateľné URL adresy
Typoscript setup
config {
simulateStaticDocuments = 0
baseURL = www.sitename.sk
tx_realurl_enable = 1
}
PHP
(typo3conf/localconf.php)
$TYPO3_CONF_VARS['EXTCONF']['realurl']['www.sitename.sk'] = array(
'init' => array(
'enableCHashCache' => '1',
'appendMissingSlash' => 'ifNotFile,redirect',
'adminJumpToBackend' => '1',
'enableUrlDecodeCache' => '1',
'enableUrlEncodeCache' => '1',
'emptyUrlReturnValue' => '/',
),
'pagePath' => array(
'type' => 'user',
'userFunc' => 'EXT:realurl/class.tx_realurl_advanced.php:&tx_realurl_advanced->main',
'spaceCharacter' => '-',
'languageGetVar' => 'L',
'rootpage_id' => '1',
),
'fileName' => array(
'defaultToHTMLsuffixOnPrev' => 1,
'index' => array(
'index.html' => array(
'keyValues' => array()
),
'print.html' => array(
'keyValues' => array(
'type' => 98
)
),
'sitemap.xml' => array(
'keyValues' => array(
'type' => 200
),
),
),
),
'preVars' => array (
array(
'GETvar' => 'L',
'valueMap' => array(
'sk' => '0',
'en' => '1',
),
'noMatch' => 'bypass',
),
),
);
| Žiadne dokumenty ani odkazy k tejto stránke. | ||
Generátor typoscriptu
Vytvára typoscript pre bežné použitie. Generátor je jednoduchý na obsluhu, stačí vyplniť zopár položiek formulára.