繁体   English   中英

如何在Intershop7中覆盖渲染ISML模板

[英]How to override a render ISML template in Intershop7

在Enfinity Suite 6.4中,我们通过覆盖PrimeTech墨盒的ISML模板来自定义店面页面。 例如,可以在自定义盒式磁带中向“ sld_ch_consumer_app”添加依赖项,并通过在自定义盒式磁带中添加具有相同名称和层次的模板来替换任何Primetech ISML模板。

在Intershop7中有可能发生这种情况吗? 例如,我们希望在ProductTile.isml中更改ISML元素的顺序,而不必覆盖pagelet模型。 如果我们在自定义盒式磁带中将依赖项添加到“ app_sf_sensitive_cm”,并在自定义盒式磁带中创建具有相同名称和文件夹层次结构的ISML模板,系统仍将从“ app_sf_sensitive_cm”中加载ISML模板。

我们设法实现看到店面中的更改的唯一方法是,重写页面let模型并将渲染模板名称更改为“ ProductTileCustom”。 像这样:

在此处输入图片说明

如果我们不使用自定义名称作为渲染模板,则系统将首先从app_sf_sensitive_cm中加载ProductTile.isml,而不是从我们的自定义墨盒(app_sf_a1_shop_cm)中加载ProductTile.isml。

卡式盒列表.properties中的卡式盒顺序为:

....
bc_urlrewrite_test \
bc_product_rating_orm_test \
commerce_management_b2c_component \
app_core_a1 \
app_sf_a1_shop \
app_sf_a1_shop_cm \
app_bo_a1 \
app_sf_responsive \
app_sf_responsive_cm \
app_sf_responsive_b2c \
app_sf_responsive_smb \
as_responsive \
as_a1 \

除了覆盖小页面模型之外,还有其他更简单的方法来覆盖响应式存储ISML模板吗?

不需要覆盖pagelet模型,只需覆盖ISML模板即可解决问题。 您可以通过执行以下操作在Intershop 7中轻松覆盖ISML模板:

  1. 右键单击要向其添加新模板的自定义盒带,然后选择new > ISML Template
  2. 在出现的弹出窗口中,单击“ Override Existing...
  3. 选择要覆盖的模板,然后单击“ open
  4. 点击Finish

Intershop Studio现在将自动在您指定的墨盒中创建模板并纠正文件夹结构。

根据appserver.properties文件中的设置,您可能需要重新启动甚至重新部署应用程序服务器,然后新模板才能在前端显示。

除了Bas de Groot在使用intershop studio向导覆盖ISML模板方面提到的内容之外,我还想指出您的问题还在于您的carterlist.properties中的盒带顺序错误。 所以代替:

bc_urlrewrite_test \\ bc_product_rating_orm_test \\ commerce_management_b2c_component \\ app_core_a1 \\ app_sf_a1_shop \\ app_sf_a1_shop_cm \\ app_bo_a1 \\ app_sf_responsive \\ app_sf_responsive_cm \\ app_sf_responsive_b2c \\ app_sf_responsive_smb \\ as_responsive \\ as_a1 \\

您必须在此使用此命令:

bc_urlrewrite_test \\ bc_product_rating_orm_test \\ commerce_management_b2c_component \\ app_sf_responsive \\ app_sf_responsive_cm \\ app_sf_responsive_b2c \\ app_sf_responsive_smb \\ as_responsive \\ as_a1 \\ app_core_a1 \\ app_sf_a1_shop \\ app_sf_a1_shop_cm \\ app_bo_a1 \\

换句话说,您的专案子弹必须在Intershop装满之后装入

暂无
暂无

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

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