'How to migrate realurl configuration for TYPO3 v9?
I want to migrate a realUrlconf to my TYPO3 v9.
Before, in a realurl_conf, my config was :
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['realurl']['_DEFAULT']['postVarSets'] = array (
'_DEFAULT' => array (
// fe_users
'my_user' => array (
array (
'GETvar' => 'fe_users[uid]',
'lookUpTable' => array (
'table' => 'fe_users',
'id_field' => 'uid',
'alias_field' => 'concat(first_name, "-", name)',
'addWhereClause' => ' AND NOT deleted',
'languageGetVar' => 'L',
'languageField' => 'sys_language_uid',
'autoUpdate' => 1,
'expireDays' => 1,
'useUniqueCache' => 1,
'useUniqueCache_conf' => array (
'strtolower' => 1,
'spaceCharacter' => '_',
),
),
),
),
)
Now, in a fe_user table, i have a field named slug
In my site config, I have written:
routeEnhancers:
PagesUser:
type: Simple
limitToPages:
- 136
routePath: '/my_user/{userid}'
_arguments:
userid: fe_users[uid]
aspects:
userid:
type: PersistedAliasMapper
tableName: fe_users
routeFieldName: slug
Here, the page 136 is annuaire.
I try to transform
/annuaire/page-perso-1?fe_users%5Buid%5D=201
like
/annuaire/my_user/name_forname
I think the problem is in the way of coding _argument to get fe_users[uid].
I have tried with fe_users[uid] or fe_users|uid or fe_users/uid.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
