[TYPO3-german] realurl Problem - Falsche Linkadressen im Menü

Johannes C. Laxander jc at laxander.com
Sat Sep 26 11:59:29 CEST 2015


Hallo Johannes C. Schulz - damit man weiß wer "wirklich gemeint" ist ;) 

Ich verwende den Auto-Modus nicht, habe mein eigene realurl_conf.php.

Gruß, Johannes C. Laxander

Hier meine realurl_conf.php

<?php
$TYPO3_CONF_VARS['FE']['addRootLineFields'].= ',tx_realurl_pathsegment';
$TYPO3_CONF_VARS['EXTCONF']['realurl'] = array(
	'_DEFAULT' => array(
		'pagePath' => array(
			'type' => 'user',
			'userFunc' =>
'EXT:realurl/class.tx_realurl_advanced.php:&tx_realurl_advanced->main',
			'spaceCharacter' => '-',
			'languageGetVar' => 'L',
			'expireDays' => '3',
			'rootpage_id' => 1
			#'firstHitPathCache'=> 1
		),
		'init' => array(
			'enableCHashCache' => TRUE,
			'enableCHashCache' => 1,
			'respectSimulateStaticURLs' => 1,
			'enableUrlDecodeCache' => 1,
			'enableUrlEncodeCache' => 1,
			'appendMissingSlash' => 'ifNotFile'
		),
		'preVars' => array(
			'0' => array (
				'GETvar' => 'no_cache',
				'valueMap' => array (
					'nc' => '1',
				),
				'noMatch' => 'bypass'
			),
		),
		'fileName' => array (
			'defaultToHTMLsuffixOnPrev' => true,
			'index' => array (
				'sitemap.xml' => array (
					'keyValues' => array (
						'type' => '841132',
					),
				),
				'robots.txt' => array (
					'keyValues' => array (
						'type' => '841133',
					),
				),
				'rss-newsfeed.xml' => array (
					'keyValues' => array (
						'type' => '9818',
					),
				),
				'rss-newsfeed.html' => array (
					'keyValues' => array (
						'type' => '9818',
					),
				),
			),
		),
		'fixedPostVars' => array(
			'newsDetailConfiguration' => array(
				array(
					'GETvar' => 'tx_news_pi1[news]',
					'lookUpTable' => array(
						'table' =>
'tx_news_domain_model_news',
						'id_field' => 'uid',
						'alias_field' => 'title',
						'addWhereClause' => ' AND
NOT deleted',
						'useUniqueCache' => 1,
						'useUniqueCache_conf' =>
array(
							'strtolower' => 1,
							'spaceCharacter' =>
'-'
						),
					),
				),
			),
			'newsCategoryConfiguration' => array(
				array(
					'GETvar' =>
'tx_news_pi1[overwriteDemand][categories]',
					'lookUpTable' => array(
						'table' =>
'tx_news_domain_model_category',
						'id_field' => 'uid',
						'alias_field' => 'title',
						'addWhereClause' => ' AND
NOT deleted',
						'useUniqueCache' => 1,
						'useUniqueCache_conf' =>
array(
							'strtolower' => 1,
							'spaceCharacter' =>
'-'
						),
					),
				),
			),
			'newsTagConfiguration' => array(
				array(
					'GETvar' =>
'tx_news_pi1[overwriteDemand][tags]',
					'lookUpTable' => array(
						'table' =>
'tx_news_domain_model_tag',
						'id_field' => 'uid',
						'alias_field' => 'title',
						'addWhereClause' => ' AND
NOT deleted',
						'useUniqueCache' => 1,
						'useUniqueCache_conf' =>
array(
							'strtolower' => 1,
							'spaceCharacter' =>
'-'
						),
					),
				),
			),
			# Set page IDs
			'18' => 'newsDetailConfiguration',
			'27' => 'newsDetailConfiguration',
		),
		'postVarSets' => array(
			'_DEFAULT' => array(
				'controller' => array(
					array(
						'GETvar' =>
'tx_news_pi1[action]',
						'noMatch' => 'bypass'
					),
					array(
						'GETvar' =>
'tx_news_pi1[controller]',
						'noMatch' => 'bypass'
					),
				),
				'dateFilter' => array(
					array(
						'GETvar' =>
'tx_news_pi1[overwriteDemand][year]',
					),
					array(
						'GETvar' =>
'tx_news_pi1[overwriteDemand][month]',
					),
				),
			),
		),
	)
);
?>





-----Ursprüngliche Nachricht-----
Von: typo3-german-bounces at lists.typo3.org
[mailto:typo3-german-bounces at lists.typo3.org] Im Auftrag von Johannes C.
Schulz - EnzephaloN IT-Solutions
Gesendet: Samstag, 26. September 2015 11:11
An: German TYPO3 Userlist <typo3-german at lists.typo3.org>
Betreff: Re: [TYPO3-german] realurl Problem - Falsche Linkadressen im Menü

Hallo Johannes

config.baseUrl soll man eigentlich gar nicht mehr verwenden. Stattdessen
config.absRefPrefix = / und im root einen passenden Domainrecord. Das ists
dann auch schon.
Hast Du dir mal die realUrl-Konfig angesehen oder läuft es im Auto-Modus? 
Ich würde immer vom Auto-Modus abraten.

Viele Grüße
Johannes C. Schulz


_______________________________________________
TYPO3-german mailing list
TYPO3-german at lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-german



More information about the TYPO3-german mailing list