如何创建引用父容器并在其他容器内移动的新容器。我尝试的是什么

 <referenceContainer name="content">
        <container name="product.container" as="productContainer" htmlTag="div" htmlClass="product-container">
        </container>
</referenceContainer>
<move name="product.info.main" destination="product.container" />
<move name="product.info.media" destination="product.container" /> 
.

有帮助吗?

解决方案

您有错误的显示内部移动,

plz尝试,

 <move element="product.info.main" destination="product.container"/>
.

使用element而不是移动标签中的生成aceTicetagcode。

其他提示

在语法中有一个不匹配请通过替换 name 属性来替换它到元素,如下所示。

<move element="product.info.main" destination="product.container" />
<move element="product.info.media" destination="product.container" />
.

许可以下: CC-BY-SA归因
scroll top