ghostunicorns/module-cms-fallback 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

ghostunicorns/module-cms-fallback

Composer 安装命令:

composer require ghostunicorns/module-cms-fallback

包简介

This module allows you to use local phtml template file as fallback instead of cms content

README 文档

README

This module allows you to use local phtml template file as fallback instead of cms content

Install

composer require ghostunicorns/module-cms-fallback

How to use

The specified fallback template will be rendered if block is missing.

In your cms block layout declaration, just add the extra argument fallback_template specifying the fallback template:

<block class="Magento\Cms\Block\Block" name="block-name">
    <arguments>
        <argument name="block_id"
                  xsi:type="string">block-identifier</argument>
        <argument name="fallback_template"
                  xsi:type="string">Vendor_Module::template.phtml</argument>
    </arguments>
</block>

How to import

You can transfer all the new file-based block template to Magento CMS Block by running:

bin/magento cms-fallback:import --storeview default

You can also add --force to override the existing blocks.

Contribution

Yes, of course you can contribute sending a pull request to propose improvements and fixes.

统计信息

  • 总下载量: 1.69k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-01-13

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固