问题
productLayout2Page.jsp和product detail page的绑定关系在Hybris WCMS cockpit什么地方能够找到
点击了product list里的product image,会跳转到detail page:
![](https://img.haomeiwen.com/i2085791/2b20a7c7223f84d8.png)
target jsp的url在这个方法里计算出来:
![](https://img.haomeiwen.com/i2085791/3a1d8bdf33cda8ba.png)
算出来的结果:
![](https://img.haomeiwen.com/i2085791/3ad5ecd52e52070a.png)
也就是这个文件:
![](https://img.haomeiwen.com/i2085791/6200c6498db2c983.png)
问题
productLayout2Page.jsp和product detail page的绑定关系在WCMS cockpit什么地方能够找到?
这两天内部transfer忙着交接,没有及时回复。
productLayout2Page.jsp和product detail page的绑定关系是在以下的impex里面插入的
INSERT_UPDATE PageTemplate;$contentCV[unique=true];uid[unique=true];name;frontendTemplateName;restrictedPageTypes(code);active[default=true] ;;ProductDetailsPageTemplate;Product Details Page Template;product/productLayout2Page;ProductPage
依据个人经验,wcms主要还是要领会思路,不要迷失在具体的代码里,因为画面是自动生成的。
WCMS--Page template--componentslot--component--cmsproductlistcomponent.jsp--productListerItem.tag
确实,这里注释写的很清楚。
![](https://img.haomeiwen.com/i2085791/e121a21901d0b426.png)
![](https://img.haomeiwen.com/i2085791/8b7fc927c72c7742.png)
要获取更多Jerry的原创文章,请关注公众号"汪子熙":
![](https://img.haomeiwen.com/i2085791/fc7ecd97deb67090.png)
网友评论