Мой URL-адрес
backPid = 5 & tx_viextendednews_newsblog% 5Baction% 5D = шоу & tx_viextendednews_newsblog% 5Bcontroller% 5D = Extendednews & tx_viextendednews_newsblog% 5Bextendednews% 5D = 1
и я хочу сделать это
/ Новости-деталь / newstitle /? Backpid = 5
Я написал в своем файле ext_local.conf
$ GLOBALS ['TYPO3_CONF_VARS'] ['SYS'] ['routing'] ['CustomPlugin'] = \ VrisiniInfotechLLP \ ViExtendednews \ Routing \ CustomEnhancer :: class;
И мой хранитель -
class CustomEnhancer extends AbstractEnhancer implements RoutingEnhancerInterface, ResultingInterface
{
/**
* @var array
*/
protected $configuration;
/**
* @var string
*/
protected $namespace;
public function __construct(array $configuration)
{
$this->configuration = $configuration;
$this->namespace = $this->configuration['namespace'] ?? '';
}
}
Мой путь к config.yaml
/siteroot/typo3conf/sites/foldername/config.yaml
routeEnhancers:
NewsPlugin:
type: Extbase
limitToPages: [13]
extension: Extendednews
plugin: newsblog
routes:
- { routePath: '/detail/{news_title}', _controller: 'Extendednews::show', _arguments: {'news_title': 'news'} }
defaultController: 'Extendednews::show'
aspects:
news_title:
type: PersistedAliasMapper
tableName: 'tx_news_domain_model_news'
routeFieldName: 'path_segment'
routeValuePrefix: '/'
Как я могу понять, что этот файл работает внутренне?
Теперь Mys вопрос, что я должен написать в этом файле, чтобы я мог получить нужный URL?