[TYPO3-UG Dutch] realurl en twee domeinnamen
Bart Veldhuizen
bart at v-int.nl
Mon Jul 23 09:41:40 CEST 2007
Hi Felippe,
ik ben er destijds ook lang mee bezig geweest ja. De documentatie is
niet altijd even lekker :)
Hieronder staat een stuk van de configuratie zoals ik 'm gebruik -
hopelijk kom je er zo uit!
Groet,
BArt
----
<?php
$TYPO3_CONF_VARS['EXTCONF']['realurl'] = array(
// BASE CONFIGURATION, INCLUDING WWW.BLENDER.ORG
'_DEFAULT' => array(
'init' => array(
'enableCHashCache' => 1,
'appendMissingSlash' => 'ifNotFile',
'enableUrlDecodeCache' => 1,
'enableUrlEncodeCache' => 1,
),
'redirects' => array(),
'preVars' => array(
array(
'GETvar' => 'no_cache',
'valueMap' => array(
'nc' => 1,
),
'noMatch' => 'bypass',
),
array(
'GETvar' => 'L',
'valueMap' => array(
'dk' => '2',
'de' => '1',
),
'noMatch' => 'bypass',
),
),
'pagePath' => array(
'type' => 'user',
'userFunc' => 'EXT:realurl/
class.tx_realurl_advanced.php:&tx_realurl_advanced->main',
'spaceCharacter' => '-',
'languageGetVar' => 'L',
'expireDays' => 1,
###### include your rootpage id here
'rootpage_id' => 2,
'firstHitPathCache' => 1
),
'fixedPostVars' => array(),
'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]',
),
),
// RSS Feed (Bart)
'rss' => array (
'GETvar' => 'type',
'value' => '100'
),
// 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]',
),
),
),
),
// configure filenames for different pagetypes
'fileName' => array(
'defaultToHTMLsuffixOnPrev' => false,
'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,
),
),
),
),
),
// VERSE CONFIGURATION
'verse.blender.org' => '_DEFAULT',
'verse.blender.org' => array(
'pagePath' => array(
'type' => 'user',
'userFunc' => 'EXT:realurl/
class.tx_realurl_advanced.php:&tx_realurl_advanced->main',
'spaceCharacter' => '-',
'languageGetVar' => 'L',
'expireDays' => 1,
###### include your rootpage id here
'rootpage_id' => 571,
'firstHitPathCache' => 1
),
),
// PURPLE CONFIGURATION
'purple.blender.org' => '_DEFAULT',
'purple.blender.org' => array(
'pagePath' => array(
'type' => 'user',
'userFunc' => 'EXT:realurl/
class.tx_realurl_advanced.php:&tx_realurl_advanced->main',
'spaceCharacter' => '-',
'languageGetVar' => 'L',
'expireDays' => 1,
###### include your rootpage id here
'rootpage_id' => 570,
'firstHitPathCache' => 1
),
),
);
?>
Op 23-jul-2007, om 9:36 heeft Felippe van Eekhout het volgende
geschreven:
> Arjen,
> dat vermoeden had ik ook, maar blijkbaar gaat er toch iets fout :(
>
> Voor de cash legen en het plaatsen van de code voor RealUrl gebruik
> ik de extensie aeurltool. Vooral handig omdat er een code checker in
> zit en je niet zo 123 je site om de zeep helpt als je een ; vergeten
> bent.
> Heb via jouw manier gekeken (weer wat geleerd), maar de cash is leeg
> en de code lijkt ok (wel staat er per site-tree de gehele
> configuratie, klopt dat wel?). Ook leeg ik de Tcf-cash na wijzigingen
> voor RealUrl. Ik heb alles maar eens gestript tot het minimale en
> toch gaat het fout:
> <?php
> $TYPO3_CONF_VARS['SC_OPTIONS']['t3lib/class.t3lib_tstemplate.php']
> ['linkData-PostProc']['tx_realurl'] = 'EXT:realurl/
> class.tx_realurl.php:&tx_realurl->encodeSpURL';
> $TYPO3_CONF_VARS['SC_OPTIONS']['tslib/class.tslib_fe.php']
> ['checkAlternativeIdMethods-PostProc']['tx_realurl'] = 'EXT:realurl/
> class.tx_realurl.php:&tx_realurl->decodeSpURL';
> $TYPO3_CONF_VARS['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']
> ['clearPageCacheEval']['tx_realurl'] = 'EXT:realurl/
> class.tx_realurl.php:&tx_realurl->clearPageCacheMgm';
>
> $TYPO3_CONF_VARS['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']
> ['clearAllCache_additionalTables']['tx_realurl_urldecodecache'] =
> 'tx_realurl_urldecodecache';
> $TYPO3_CONF_VARS['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']
> ['clearAllCache_additionalTables']['tx_realurl_urlencodecache'] =
> 'tx_realurl_urlencodecache';
> $TYPO3_CONF_VARS['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']
> ['clearAllCache_additionalTables']['tx_realurl_pathcache'] =
> 'tx_realurl_pathcache';
>
> $TYPO3_CONF_VARS['FE']['addRootLineFields'].=
> ',tx_realurl_pathsegment';
>
> $TYPO3_CONF_VARS['EXTCONF']['realurl']['_DEFAULT'] = array(
> 'init' => array(
> 'enableUrlDecodeCache' => 0,
> 'enableUrlEncodeHash' => 0,
> ),
> 'pagePath' => array(
> 'type' => 'user',
> 'userFunc' => 'EXT:realurl/
> class.tx_realurl_advanced.php:&tx_realurl_advanced->main',
> 'spaceCharacter' => '_',
> 'languageGetVar' => 'L', // with two trees you don't really
> need this param
> 'expireDays' => 3,
> 'rootpage_id' => 1,
> ),
> );
>
> $TYPO3_CONF_VARS['EXTCONF']['realurl']['site_een.nl'] =
> $TYPO3_CONF_VARS['EXTCONF']['realurl']['_DEFAULT'];
> $TYPO3_CONF_VARS['EXTCONF']['realurl']['site_een.nl']['pagePath']
> ['rootpage_id'] = 1;
>
> $TYPO3_CONF_VARS['EXTCONF']['realurl']['www.site_een.nl'] =
> $TYPO3_CONF_VARS['EXTCONF']['realurl']['_DEFAULT'];
> $TYPO3_CONF_VARS['EXTCONF']['realurl']['www.site_een.nl']['pagePath']
> ['rootpage_id'] = 1;
>
> $TYPO3_CONF_VARS['EXTCONF']['realurl']['site_twee.nl'] =
> $TYPO3_CONF_VARS['EXTCONF']['realurl']['_DEFAULT'];
> $TYPO3_CONF_VARS['EXTCONF']['realurl']['site_twee.nl']['pagePath']
> ['rootpage_id'] = 2;
>
> $TYPO3_CONF_VARS['EXTCONF']['realurl']['www.site_twee.nl'] =
> $TYPO3_CONF_VARS['EXTCONF']['realurl']['_DEFAULT'];
> $TYPO3_CONF_VARS['EXTCONF']['realurl']['www.site_twee.nl']['pagePath']
> ['rootpage_id'] = 2;
>
> ?>
>
>
> Het gaat overigens ook fout bij een pagina die uniek is (die maar op
> een site voorkomt).
>
> zou het aan de php versie (PHP Version 4.4.6) kunnen liggen?
>
> Heeft iemand nog suggesties?
>
> Gr Felippe
>
>
>
> _______________________________________________
> TYPO3-UG-dutch mailing list
> TYPO3-UG-dutch at lists.netfielders.de
> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-ug-dutch
More information about the TYPO3-UG-dutch
mailing list