Reputation: 1574
I have a TYPO3 Installation where RealUrl is installed. It's configured and works fine for tt_news. I copied the tt_news configuration in realurl_conf.php and used it for my own extension. The configuration looks like is this:
'product' => array(
array(
'GETvar' => 'tx_extension_pi1[id]',
'lookUpTable' => array(
'table' => 'tx_extension_product',
'id_field' => 'uid',
'alias_field' => 'title',
'addWhereClause' => ' AND NOT deleted',
'useUniqueCache' => 1,
'useUniqueCache_conf' => array(
'strtolower' => 1,
'spaceCharacter' => '-',
),
'languageGetVar' => 'L',
'languageExceptionUids' => '',
'languageField' => 'sys_language_uid',
'transOrigPointerField' => 'l18n_parent',
),
),
),
Now what I would expect is a URL like this (for tt_news this works fine):
http://www.mydomain.com/product/product_title.html
But what I get is this:
http://www.mydomain.com/product/1.html
So basically the 'alias_field' parameter has no effect whatsoever, the url is always generetad with the uid of the entry. Does anyone have an idea what could cause this?
Answer: Beware of the T3 language fields. I copied the tt_news entry, but my kickstarter extension uses l10n_parent, not l18n_parent!
Upvotes: 0
Views: 1177
Reputation: 3631
Just a few guesses:
for me, your config looks correct.
Upvotes: 3