d3 / oxid-smarty-renderer-metapackage-pe
元包用于将OXID 7专业版的默认模板渲染器Twig切换到Smarty,同时也更改后端主题为Smarty。安装完成后,安装您想要的基于Smarty的主题(如Wave或Flow)。
1.1.0
2023-07-27 11:37 UTC
Requires
- d3/oxid-smarty-renderer-metapackage-ce: *
- oxid-esales/oxideshop-demodata-pe: ^7.0
- oxid-esales/smarty-component-pe: *
Replaces
- oxid-esales/twig-component-pe: *
README
在OXID eShop 7 PE中将模板引擎从Twig切换到Smarty,以使用基于Smarty的主题
安装
composer require d3/oxid-smarty-renderer-metapackage-pe --update-no-dev
安装后,安装您想要的基于Smarty的前端主题(例如Wave或Flow)。
清空TMP文件夹。
在管理员中激活基于Smarty的前端主题。
请注意
- 基于Twig的前端主题不会被删除,但在激活时会在商店中引起错误
- 模板引擎只能系统性地切换。切换时后端也使用更改后的模板引擎。管理员将自动使用相应的主题。
由于在Twig渲染器上下文中不注册Smarty模板和插件,因此必须在切换渲染器后重新激活所有带有相应条目的插件。
卸载
运行以下命令以返回到默认(Twig)。
composer remove d3/oxid-smarty-renderer-metapackage-pe d3/oxid-smarty-renderer-metapackage-ce --update-no-dev
清空TMP文件夹。
在管理员中激活基于Twig的前端主题。