Вопрос

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!

Это было полезно?

Решение

Just a few guesses:

  • tx_extension_product.sys_language_uid and tx_extension_product.l18n_parent, tx_extension_product.title exists?
  • if you are german title or titel?
  • check for PHP errors / warnings in the logfiles
  • Modul Info - check Realurl configuration / Cache etc.

for me, your config looks correct.

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top