将Magento2样本数据中的Luma Thema样本图像扩展到自定义主题时,为什么看不到它? [英] Why are the Luma Thema sample images from Magento2 sample data not visible when extending it to a custom theme?

查看:226
本文介绍了将Magento2样本数据中的Luma Thema样本图像扩展到自定义主题时,为什么看不到它?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我安装了Magento2开源示例数据,并且一切正常.当我在管理后端切换到luma主题时,我可以看到所有内容.但是,当我基于亮度主题创建自定义主题时,数据/图像不再可见.我究竟做错了什么?应该在某处标记吗?

I installed the Magento2 open source sample data and everything works fine. When I switch to the luma theme in the admin backend I can see everything. But when I create a custom theme based on luma theme the data/images is not visible anymore. What am I doing wrong? Should it be marked somewhere?

推荐答案

好,我知道了.我必须在数据库中进行两个sql查询,因为分配给旧主题的小部件存在问题:

Ok, I figured it out. I had to make two sql queries in the database because it was a problem with the widgets assigned to the old theme:

更新layout_link SET theme_id ='[CUSTOM_THEME_ID]' 更新widget_instance SET theme_id ='[CUSTOM_THEME_ID]'

UPDATE layout_link SET theme_id = '[CUSTOM_THEME_ID]' UPDATE widget_instance SET theme_id = '[CUSTOM_THEME_ID]'

这篇关于将Magento2样本数据中的Luma Thema样本图像扩展到自定义主题时,为什么看不到它?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆