Skip to content

Instantly share code, notes, and snippets.

@bjrnqprs
Created August 27, 2013 11:46
Show Gist options
  • Save bjrnqprs/6352539 to your computer and use it in GitHub Desktop.
Save bjrnqprs/6352539 to your computer and use it in GitHub Desktop.
Default RealUrl configuration. Might expand this later.
<?php
/**
* Setup multi-language/domain config
*
* NOTE: Multiple domains for a single language will not work.
* The first defined domain is used in that case.
*/
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['realurl']['_DOMAINS'] = array(
'encode' => array(
array(
'GETvar' => 'L',
'value' => '0',
'useConfiguration' => 'www.machinenet.nl',
'urlPrepend' => 'http://www2.machinenet.nl'
),
array(
'GETvar' => 'L',
'value' => '2',
'useConfiguration' => 'www.machinenet.nl',
'urlPrepend' => 'http://www.machinenet.co.uk'
),
),
'decode' => array(
'www.machinenet.nl' => array(
'GETvars' => array(
'L' => '0'
),
'useConfiguration' => 'www.machinenet.nl'
),
'www.machinenet.co.uk' => array(
'GETvars' => array(
'L' => '2'
),
'useConfiguration' => 'www.machinenet.nl'
),
)
);
<?php
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['realurl'] = array(
'_DEFAULT' =>
array(
'init' => array(
'enableCHashCache' => true,
'appendMissingSlash' => 'ifNotFile,redirect',
'adminJumpToBackend' => true,
'enableUrlDecodeCache' => true,
'enableUrlEncodeCache' => true,
'emptyUrlReturnValue' => '/',
),
'pagePath' => array(
'type' => 'user',
'userFunc' => 'EXT:realurl/class.tx_realurl_advanced.php:&tx_realurl_advanced->main',
'spaceCharacter' => '-',
'languageGetVar' => 'L',
'rootpage_id' => '1',
'segTitleFieldList' => 'tx_realurl_pathsegment,nav_title,title,uid' // removed alias-field
),
'fileName' => array(
'defaultToHTMLsuffixOnPrev' => 0,
'acceptHTMLsuffix' => 1,
'index' => array(
'print' => array(
'keyValues' => array(
'type' => 98,
),
),
),
),
),
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment