【发布时间】:2019-09-26 14:52:38
【问题描述】:
我添加了一个自定义模块,用于向类别页面添加额外描述。它显示在管理员中,但我无法让它显示在类别前端页面上。我可能不了解 childtheme 继承结构。
我已阅读并尝试过这里的每篇文章,但没有一篇文章能提供我需要的确切信息。
- Luma Childtheme 处于活动状态:app>design>frontend>MyCompany>Luma_child
- 自定义模块:app>code>MyCompany>CategoryAttribute
我尝试添加 app/code/MyCompany/CategoryAttribute/view/frontend/templates/myCustomFile.phtml 和 CategoryAttribute/view/frontend/layout/catalog_category_view.xml 在 app/design/frontend/MyCompany/Luma_child 中也有类似的东西
预计会在首页上看到我的自定义类别文本,但事实并非如此。没有显示错误。
【问题讨论】:
标签: frontend categories magento2