定制 beebots/magento2-scheduled-cms-block 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

beebots/magento2-scheduled-cms-block

Composer 安装命令:

composer require beebots/magento2-scheduled-cms-block

包简介

Cms block with start and stop time

README 文档

README

Schedule Block is a very simple Magento Module enabling you to schedule the pseudo "publish" date of a CMS block. Allowing it to render within a start time and end time window.

Especially helpful for scheduling the publishing of banners, sales, etc.

Can be used in conjunction with the BeeBots Scheduled Cache Flush module to automatically flush your cache on specific dates/times. This is helpful if you have full page caching or block caching enabled. You can schedule a CMS block rendering and Cache Flush for the same date and time.

See optional: https://github.com/beebots/magento2-scheduled-cache-flush

Installation

composer require "beebots/magento2-scheduled-cms-block"

Usage

  • Create a CMS block and note the block identifier example: my-block-123

  • Open the CMS block or CMS page that you want to render your above block in, for example your home page.

  • Invoke your new block using the Schedule Block type. Pass in the startDate and endDate parameters.

    {{block class='\BeeBots\ScheduledCmsBlock\Block\ScheduledBlock' startDate='2021-05-01T16:59' stopDate='2021-05-31T12:00' id='my-block-123' }}

  • On your home page, my-block-123 will now render if the current date is within the window you provided.

Preview

You may want to schedule the publishing of multiple blocks on a page and preview them. You can preview a block by using a block-time query parameter to override todays current date.

Example: https://yoursite.com/?block-time=2021-05-15

This will load your homepage and render any schedule blocks where 2021-05-15 falls within the time window.

统计信息

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

GitHub 信息

  • Stars: 2
  • Watchers: 3
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2021-11-23

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固