[TYPO3-english] Problem with Realurl und tt_news

Philipp Holdener philipp at holdener.ch
Fri Oct 8 07:59:42 CEST 2010


Am 08.10.10 00:10, schrieb David ARNOULT - Edition & Internet Operations:
> Hello Philip,
>
> I confirm: on my side all realurl releases superior to 1.8.1 does not work
> on my 4.3.7 with same realurl_conf.php.
> Something happened!
>
> I am desperating in localizing tt_news single view URL, it simply does not
> work, only default language is used.
> Adding these four lines in my postvar lookUpTable array did not help.
> 'languageGetVar' =>  'L',
> 'languageExceptionUids' =>  '',
> 'languageField' =>  'sys_language_uid',
> 'transOrigPointerField' =>  'l18n_parent',
>
> Could you send us your realurl config file to have a look and maybe find a
> solution ?
>


Hi David

This is my realurl_conf that works:

<?php
$TYPO3_CONF_VARS['EXTCONF']['realurl']['_DEFAULT'] = array(
	'init' => array(
		'enableCHashCache' => 1,
		'appendMissingSlash' =>	'ifNotFile',
		'enableUrlDecodeCache' => 1,
		'enableUrlEncodeCache' => 1,
		//'emptyUrlReturnValue' => '/'
	),
	'preVars' => array(
		array(
			'GETvar' => 'no_cache',
			'valueMap' => array(
				'nc' => 1
			),
			'noMatch' => 'bypass'
		),
	/*	array(
			'GETvar' => 'L',
			'valueMap' => array(
				'de' => 0,
				'en' => 1,
				'fr' => 2,
				'es' => 3,
				'it' => 4
			),
			'valueDefault' => 'de'
		),
	*/
	),
	'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,alias,title',
		'expireDays' => 1095
	),
	'fixedPostVars' => array(
// ID of the news singlepage
		51 => array(
			array(
				'GETvar' => 'tx_ttnews[tt_news]',
				'lookUpTable' => array(
					'table' => 'tt_news',
					'id_field' => 'uid',
					'alias_field' => 'title',
					//'addWhereClause' => ' AND deleted != 1',
					'useUniqueCache' => 1,
					//'autoUpdate' => 1,
					'useUniqueCache_conf' => array(
						'strtolower' => 1,
						'spaceCharacter' => '-'
					)
				)
			)
		),
	),
	'postVarSets' => array(
		'_DEFAULT' => array(
			/*'article' => array(
				array(
					'GETvar' => 'tx_ttnews[tt_news]',
					'lookUpTable' => array(
						'table' => 'tt_news',
						'id_field' => 'uid',
						'alias_field' => 'title',
						//'addWhereClause' => ' AND deleted != 1',
						'useUniqueCache' => 1,
						//'autoUpdate' => 1,
						'useUniqueCache_conf' => array(
							'strtolower' => 1,
							'spaceCharacter' => '-'
						)
					)
				),
			),*/
		),
	),
	'fileName' => array(
		'index' => array(
			'index.html' => array(
				'keyValues' => array(
					'type' => 0
				)
			),
			'print.html' => array(
				'keyValues' => array(
					'type' => 98
				)
			),
			'.txt' => array(
				'keyValues' => array(
					'type' => 99
				)
			),
			'sitemap.xml' => array(
				'keyValues' => array(
					'type' => 776
				)
			)
		),
		'defaultToHTMLsuffixOnPrev' => 1,
		'acceptHTMLsuffix' => 1
	)
);
?>

Greetings
Philipp


More information about the TYPO3-english mailing list