[TYPO3-project-seminars] RealURL possible?

Mario Rimann typo3-coding at rimann.org
Mon Jan 26 11:37:26 CET 2009


Christian Clemens | webzigartig schrieb:
> I'm looking for a solution to "style" links to seminars with RealURL so that
> a link doesn't look like this:
> http://www.domain.de/seminars.html?
> <http://www.domain.de/seminars.html?&tx_seminars_pi1[showUid]=205>
> &tx_seminars_pi1[showUid]=205
> but like this:
> http://www.domain.de/seminars/seminar_topic_A.html

Hi Christian

I see a partial solution: If you add the following code snippet into
your realURL configuration, the links will contain the record title as
part of the URL. But with this solution, date, topic and single-event
records are handled the same - if you want to have this changed, someone
would need to code something.

'postVarSets'   => array(
	'_DEFAULT' => array(
		'kursdetail' => array(
			array(
				'GETvar' => 'tx_seminars_pi1[showUid]',
				'lookUpTable' => array(
					'table' => 'tx_seminars_seminars',
					'id_field' => 'uid',
					'alias_field' => 'title',
					'addWhereClause' => ' AND NOT deleted',
					'useUniqueCache' => 1,
					'useUniqueCache_conf' => array(
						'strtolower' => 1,
						'spaceCharacter' => '-',
					),
				),
			),
		),
	),
),

Cheers,
Mario

-- 
Mario Rimann - Screenteam GmbH, Zürich
Freelancer / Contractor for TYPO3 support/implementation and extension
development
http://www.screenteam.com/


More information about the TYPO3-project-seminars mailing list