【问题标题】:How to customize the template of BitBagCmsPlugins with Sylius 1.9?如何使用 Sylius 1.9 自定义 BitBagCmsPlugins 的模板?
【发布时间】:2021-06-01 16:04:59
【问题描述】:

我对 Sylius 1.9 上的 BitBagCmsPlugins 有疑问。

我无法自定义此插件的模板。我已经尝试了所有路径:

  • 在我的主题中:themes/myTheme/BitBagCmsPlugins/...
  • 在我的主题模板中:themes/myTheme/templates/bundle/BitBagCmsPlugins/...
  • 在我的主题包中:themes/myTheme/templates/bundle/BitBagCmsPlugins/...

对模板的任何更改都不会被覆盖。

有人有同样的问题吗?或者也许有人可以告诉我另一个解决方案?

【问题讨论】:

  • bundles而不是bundleBitBagSyliusCmsPlugin而不是BitBagCmsPlugins,所以完整路径是themes/myTheme/templates/bundles/BitBagSyliusCmsPlugin/...
  • 感谢您的帮助,事实上问题出在我的路径之下。正确的路径是:themes/mytheme/templates/bundles/BitBagSyliusCmsPlugin/Shop/....(我会在 BitBag 和 Shop 文件夹之间放一个视图)

标签: sylius


【解决方案1】:

对于有同样问题的人,这里是我的更正:

小心你的路径,当你想用你的主题自定义插件或捆绑包时,路径是:

themes/[Your theme]/templates/bundles/[bundleName or plubginName]/....

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2016-08-06
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多