[TYPO3] RealURL skips one page segment when generating speaking URLs [one site]

Cyprian Kowalczyk cyprian at pi2.pl
Wed Jun 21 21:30:10 CEST 2006


Hello,

I can't figure aout why I get the following behaviour of the RealURL  
extension (it's skipping first segment of page's path):

+root
  \-main-page -> www.domain.com
   \-sub1 ->  www.domain.com/sub1/
   |\-sub1sub1 ->  www.domain.com/sub1sub1/
   ||-sub1sub2 ->  www.domain.com/sub1sub2/
   |\-sub1sub3 ->  www.domain.com/sub1sub3/
   \-sub2 ->  www.domain.com/sub2/
   |\-sub2sub1 ->  www.domain.com/sub2sub1/
   ||-sub2sub2 ->  www.domain.com/sub2sub2/
   |\-sub2sub3 ->  www.domain.com/sub2sub3/
   ...

And I'd like to have the subsubpages' urls like:
www.domain.com/sub1/sub1subX/
www.domain.com/sub2/sub2subX/
etc

My localconf.php configuration is:

$TYPO3_CONF_VARS['EXTCONF']['realurl'] = array(
	'_DEFAULT' => array(
		'init' => array (
			'rootpage_id' => 1,
			'enableCHashCache' => true,
			'appendMissingSlash' => "ifNotFile",
			'enableCHashCache' => true,
			'enableUrlDecodeCache' => true,
			'enableUrlEncodeCache' => true,
			),
		'preVars' => array (
			array(
				'type' => 'action', // "type" action
				'index' => array(
					'_DEFAULT' => array(
						'type' => 'bypass'    // If key was not found in index, throw "404"  
not found.
	 					),
					),
				),
			),
		 'pagePath' => array(
				'type' => 'user',
				'userFunc' =>  
'EXT:realurl/class.tx_realurl_advanced.php:&tx_realurl_advanced->main',
				'spaceCharacter' => '-',
				'expireDays' => 14,
				'rootpage_id' => 1,
			),
		)
);

Thanks for any hint.

-- 

regards, Cyprian
pi2.pl ~ π^2 design project



More information about the TYPO3-english mailing list