[英]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.