[英]tx_news - configuration of tags and categories in realurl, if both link to the same page?
我将TYPO3 7.6.23与新闻6.1.1和realurl 2.3.1一起使用,并包含来自官方新闻文档的realurl_config.php。
...
'newsCategoryConfiguration' => array(
array(
'GETvar' => 'tx_news_pi1[overwriteDemand][categories]',
'lookUpTable' => array(
'table' => 'sys_category',
'id_field' => 'uid',
'alias_field' => 'title',
'addWhereClause' => ' AND NOT deleted',
'useUniqueCache' => 1,
'useUniqueCache_conf' => array(
'strtolower' => 1,
'spaceCharacter' => '-'
)
)
)
),
'newsTagConfiguration' => array(
array(
'GETvar' => 'tx_news_pi1[overwriteDemand][tags]',
'lookUpTable' => array(
'table' => 'tx_news_domain_model_tag',
'id_field' => 'uid',
'alias_field' => 'title',
'addWhereClause' => ' AND NOT deleted',
'useUniqueCache' => 1,
'useUniqueCache_conf' => array(
'strtolower' => 1,
'spaceCharacter' => '-'
)
)
)
),
'50' => 'newsDetailConfiguration',
'8' => 'newsTagConfiguration',
'8' => 'newsCategoryConfiguration',
...
现在,我想按类别或按单个列表页面(id = 8)上的标签过滤新闻。 但是我只显示一个不错的“类别” URL,而不是不错的“标记” URL。 newsCategoryConfiguration覆盖newsTagConfiguration。 如何获得标签的网址呢?
您的realurl代码正确。
我认为这是一个缓存问题。 因此,清除所有BE缓存(在Install TOOL中)。
1)realurl缓存路径:RealUrl页面模块->根页面-> Flush all entries (harmful!)
2)删除typo3temp文件。在此处输入代码
'8' => 'newsTagConfiguration',
'8' => 'newsCategoryConfiguration',
这将不起作用,因为第二个'8'
将覆盖第一个。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.