简体   繁体   English

typo3 realurl多个插件和控制器问题,无法访问所需参数

[英]typo3 realurl multiple plugin and controller issue, can't access require parameters

I have created a module to show products and its category on front. 我创建了一个模块来在前面显示产品及其类别。 I have create 3 plugins in this module, one for showing category list (allcategory), one for showing category products list (categoryproduct) and last one is for product's details (productdetail). 我在此模块中创建了3个插件,一个用于显示类别列表(allcategory),一个用于显示类别产品列表(categoryproduct),最后一个用于产品详细信息(productdetail)。 All plugins were applied on 3 individual pages. 所有插件均在3个单独的页面上应用。

So there URL have their namespace like 因此,URL的命名空间如下

  1. /produkte/?tx_wxproducts_allcategory[pcuid]=78&tx_wxproducts_allcategory[controller]=WxCategory
  2. /produkte/produktdetails/?tx_wxproducts_productdetail[uid]=79&tx_wxproducts_productdetail[controller]=WxProducts
  3. /produkte/produkte-category/?tx_wxproducts_categoryproduct[cuid]=67&tx_wxproducts_categoryproduct[controller]=WxProducts

Now, I am writing the rules for realURL configuration to create speaking URLs for these products and category. 现在,我正在编写realURL配置规则,以为这些产品和类别创建口述URL。

Issue is, when go from one plugin to another plugin controller then we do not receive the request variables which are very much required to access the page. 问题是,当从一个插件转到另一个插件控制器时,我们没有收到访问页面所需的请求变量。 I have search on internet and found similar issue reported in 2011: https://forum.typo3.org/index.php/t/152453/ 我在互联网上进行搜索,发现了2011年报告的类似问题: https : //forum.typo3.org/index.php/t/152453/

I didn't have any idea that multi plugin could have given such issue other wise i would have made it with single plugin and services for choosing action but its too late. 我不知道多插件可以以其他方式解决这个问题,我会选择单个插件和服务来选择动作,但为时已晚。

I am looking for the solution, i think typo3 mentors can help me out of this problem. 我正在寻找解决方案,我认为typo3导师可以帮助我解决这个问题。

Build your links like this: 建立像这样的链接:

<f:link.action pageUid="myTargetPage" action="myAction" controller="WxProducts" pluginName="productdetail" arguments="{uid: '{myVariable}'}"

Does this help? 这有帮助吗?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM