Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/typo3/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
TYPO3:按URL中的参数筛选tx_新闻类别_Typo3_Tx News_Typo3 10.x - Fatal编程技术网

TYPO3:按URL中的参数筛选tx_新闻类别

TYPO3:按URL中的参数筛选tx_新闻类别,typo3,tx-news,typo3-10.x,Typo3,Tx News,Typo3 10.x,我有一个网站,上面有TYPO3 v10和tx_新闻。我想知道是否可以使用URL中的参数筛选类别,例如: www.mywebsite.com/index.php?id=9&tx_news_pi1%5Bnews%5D=350&tx_news_pi1%5Bcontroller%5D=News&tx_news_pi1%5Baction%5D=list&categories=12 在本例中,链接将指向一个页面,其中所有新闻项都属于类别id=12 谢谢您的提示。是的,这可

我有一个网站,上面有TYPO3 v10和tx_新闻。我想知道是否可以使用URL中的参数筛选类别,例如:

 www.mywebsite.com/index.php?id=9&tx_news_pi1%5Bnews%5D=350&tx_news_pi1%5Bcontroller%5D=News&tx_news_pi1%5Baction%5D=list&categories=12
在本例中,链接将指向一个页面,其中所有新闻项都属于类别id=12


谢谢您的提示。

是的,这可以通过将参数添加到其移交给插件extbase控制器的形式来实现。对于tx_新闻,您要求的参数如下所示:

&tx_news_pi1[overwriteDemand][categories]=12
通过在站点中使用RouteEhancers,您甚至可以使参数更短、更可读: