【发布时间】:2018-11-07 15:47:49
【问题描述】:
是否可以通过 realurl 为我的扩展程序生成的页面添加前缀?我正在使用以下配置:
...
'postVarSets' => [
'_DEFAULT' => [
'gallery' => [
[
'GETvar' => 'tx_myext_p1gallery[action]',
'noMatch' => 'bypass',
],
[
'GETvar' => 'tx_myext_p1gallery[controller]',
'noMatch' => 'bypass',
],
[
'GETvar' => 'tx_myext_p1gallery[backId]',
'noMatch' => 'bypass',
],
[
'GETvar' => 'tx_myext_p1gallery[gallery]',
'lookUpTable' => [
'table' => 'tx_myext_domain_model_gallery',
'id_field' => 'uid',
'alias_field' => 'title',
'addWhereClause' => 'AND NOT deleted',
'useUniqueCache' => 1,
'useUniqueCache_conf' => [
'strtolower' => 1,
'spaceCharacter' => '-',
],
],
],
[
'GETvar' => 'tx_myext_p1gallery[page]',
],
],
现在我有一个这样的网址: https://www.mydomain/galerie/2016-foobar/1.html 但我想要这个https://www.mydomain/galerie/2016-foobar/page1.html
【问题讨论】:
标签: php typo3 extbase typo3-8.x realurl