[TYPO3-german] Re: [TYPO3] Realurl: uid in tt_news SINGLE-link

Steffen Gebert steffen at steffen-gebert.de
Sun Oct 5 10:40:50 CEST 2008


Hey Dmitry

> > Steffen Gebert wrote (13.07.2008):
> > I've got to include the uid of tt_news-records in the link to the 
> > tt_news SINGLE view.
> > 
> > I made this by setting alias_field to 'CONCAT(title,\'-\',uid)'.
> > Is this a bad idea / is there any recommended way? Couldn't find 
> > anything.

> Dmitry Dulepov:
> This is completely ok.

I just found out that this causes wrong replacement of special chars (umlauts etc):
Title: Neue InterCity-Züge für Holland
URL: neue-intercity-za14ge-fa14r-holland-6567/

With just alias_field 'title' it works correct: 
neue-intercity-zuege-fuer-holland/

As it works on support.typo3.org I think there's something wrong with my setup - but don't know absolutely what because without CONCAT it works perfectly :/

Do you have any idea?

Thanks
Steffen


realurl_conf.php:
======
<?php

$TYPO3_CONF_VARS['EXTCONF']['realurl'] = array(
	'_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(
					'de' => '1',
				),
				'noMatch' => 'bypass',
			),
		),
		'pagePath' => array(
			'type' => 'user',
			'userFunc' => 'EXT:realurl/class.tx_realurl_advanced.php:&tx_realurl_advanced->main',
			'spaceCharacter' => '-',
			'languageGetVar' => 'L',
			'expireDays' => 30,
			'rootpage_id' => 1,
			'segTitleFieldList' => 'alias,tx_realurl_pathsegment,nav_title,title',
		),  
		'fixedPostVars' => array(),
		'postVarSets' => array(
			'_DEFAULT' => array(
				// news archive parameters
				'lesen' => array(
					array(
						'GETvar' => 'tx_ttnews[year]',
					),
					array(
						'GETvar' => 'tx_ttnews[month]',
					),
					array(
						'GETvar' => 'tx_ttnews[tt_news]',
						'lookUpTable' => array(
							'table' => 'tt_news',
							'id_field' => 'uid',
							'alias_field' => 'CONCAT(title,\'-\',uid)',
//							'alias_field' => 'title',  
							'addWhereClause' => ' AND NOT deleted',
							'useUniqueCache' => 1,
							'useUniqueCache_conf' => array(
								'strtolower' => 1,
								'spaceCharacter' => '-',
							),
						),
					),
				),
				// news pagebrowser  
				'seite' => array(
					array(  
						'GETvar' => 'tx_ttnews[pointer]',
					),
				),
				// news categories  
				'kategorie' => array (
					array(
						'GETvar' => 'tx_ttnews[cat]',
					),
				),
				'fortsetzung' => array(
					array(
						'GETvar' => 'tx_ttnews[sViewPointer]',
					),
				),  
				'benutzer' => array(
					array(
						'GETvar' => 'tx_srfeuserregister_pi1[regHash]'
					)
				),
			),
		),
		// configure filenames for different pagetypes
		'fileName' => array(
			'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,
					),
				),
			),
		),
	),
); 

=========


More information about the TYPO3-german mailing list