[TYPO3-UG Dutch] REAL URL prevars
Roland Schoenmakers, Trigg'r
roland at triggr.nl
Thu Feb 5 00:30:41 CET 2009
Hoi Lijst,
Ik zit weer eens met realURL te stoeien...!
Ik heb een website met 3 talen (Engels: default, German=1 en
Nederlands=2)
Nu heb ik alles volgens het boekje ingesteld, en hij genereerd ook
hele mooie URL's, maar...
Het werkt bij Engels; standaard zonder prevar
Het werkt bij German, met prevar 'de'
Bij Nederlands werkt het niet!!!!
Hij geeft de nederlandse URL's geen prevar 'nl' mee...????
Ik sta echt met mijn rug tegen de muur...!
Hierbij de real URL setup:
============
$TYPO3_CONF_VARS['EXTCONF']['realurl']['www.yoursignonline.com'] =
array(
'init' => array(
'enableCHashCache' => 0,
'appendMissingSlash' => 'ifNotFile',
'enableUrlDecodeCache' => 1,
'enableUrlEncodeCache' => 1,
'respectSimulateStaticURLs' => 0,
'postVarSet_failureMode'=>'redirect_goodUpperDir',
'segTitleFieldList' =>
'title,alias,tx_realurl_pathsegment,nav_title'
),
'redirects_regex' => array (
),
'preVars' => array(
array(
'GETvar' => 'no_cache',
'valueMap' => array(
'no_cache' => 1,
),
'noMatch' => 'bypass',
),
array(
'GETvar' => 'L',
'valueMap' => array(
'de' => '1',
),
'noMatch' => 'bypass',
),
array(
'GETvar' => 'L',
'valueMap' => array(
'nl' => '2',
),
'noMatch' => 'bypass',
),
array(
'GETvar' => 'L',
'valueMap' => array(
'fr' => '3',
),
'noMatch' => 'bypass',
),
array(
'GETvar' => 'L',
'valueMap' => array(
'es' => '4',
),
'noMatch' => 'bypass',
),
),
'pagePath' => array(
'type' => 'user',
'userFunc' => 'EXT:realurl/
class.tx_realurl_advanced.php:&tx_realurl_advanced->main',
'spaceCharacter' => '-',
'languageGetVar' => 'L',
'expireDays' => 7,
'rootpage_id' => 74,
),
'postVarSets' => array(
'_DEFAULT' => array(
// news archive parameters
'archive' => array(
array(
'GETvar' => 'tx_ttnews[year]' ,
),
array(
'GETvar' => 'tx_ttnews[month]' ,
'valueMap' => array(
'january' => '01',
'february' => '02',
'march' => '03',
'april' => '04',
'may' => '05',
'june' => '06',
'july' => '07',
'august' => '08',
'september' => '09',
'october' => '10',
'november' => '11',
'december' => '12',
)
),
),
// news pagebrowser
'browse' => array(
array(
'GETvar' => 'tx_ttnews[pointer]',
),
),
// news categories
'select_category' => array (
array(
'GETvar' => 'tx_ttnews[cat]',
),
),
// news articles and searchwords
'article' => array(
array(
'GETvar' => 'tx_ttnews[tt_news]',
'lookUpTable' => array(
'table' => 'tt_news',
'id_field' => 'uid',
'alias_field' => 'title',
'addWhereClause' => ' AND NOT deleted',
'useUniqueCache' => 1,
'useUniqueCache_conf' => array(
'strtolower' => 1,
'spaceCharacter' => '-',
),
),
),
array(
'GETvar' => 'tx_ttnews[swords]',
),
),
),
),
'fileName' => array(
'defaultToHTMLsuffixOnPrev'=>1,
'index' => array(
'rss.xml' => array(
'keyValues' => array(
'type' => 100,
),
),
'rss091.xml' => array(
'keyValues' => array(
'type' => 101,
),
),
'rdf.xml' => array(
'keyValues' => array(
'type' => 102,
),
),
'atom.xml' => array(
'keyValues' => array(
'type' => 103,
),
),
),
),
);
===============
en TS:
========
############################### Localization [Start]
config {
linkVars = L
sys_language_mode = content_fallback
sys_language_overlay = hideNonTranslated
}
[globalVar = GP:L=0]
config {
sys_language_uid = 0
language = en
locale_all = en_UK
metaCharset = iso-8859-1
}
[GLOBAL]
[globalVar = GP:L=1]
config {
sys_language_uid = 1
language = de
locale_all = de_DE
}
[globalVar = GP:L=2]
config {
sys_language_uid = 2
language = nl
locale_all = nl_NL
}
[globalVar = GP:L=3]
config {
sys_language_uid = 3
language = fr
locale_all = fr_FR
}
[global]
[globalVar = GP:L=4]
config {
sys_language_uid = 4
language = es
locale_all = es_ES
}
[global]
########################### Localization [End]
#Adminpanel in fronted
config.admPanel = 1
config.doctype = xhtml_trans
# Set up REAL URL
config.simulateStaticDocuments = 0
config.baseURL = http://www.yoursignonline.com/
config.tx_realurl_enable = 1
config.prefixLocalAnchors = all
==========
Groet,
Roland Schoenmakers
More information about the TYPO3-UG-dutch
mailing list