Shopware 6 | Cloning CmsElement and get null as data,并在Shopware6论坛中:https://forum.shopware.com/discussion/67124/custom-product-box-no-data-in-the-storefront 我找到了这个答案,但由于我仍在学习Shopware 6,我不知道这是否与我相关。我已经克隆了CMS Product Box元素,
我目前正在开发一个商店软件插件,在这个插件中我向html标签head添加了一些元数据。我使用小枝扩展一个模板,并向它添加一些代码。我触发一个事件,它将元实体的数组mykn_metaFields传递给我的小枝模板。在我的小枝模板中,我遍历mykn_metaFields并将这些实体的值应用于元标记属性。php declare(strict_types=1);
use <