razecode/banner

Razecode Banner Slider for Magento 2

1.0.5 2023-02-08 05:06 UTC

This package is auto-updated.

Last update: 2024-09-08 09:04:46 UTC


README

Latest Stable Version Total Downloads

如何安装和升级Razecode_Banner

1. 通过composer安装(推荐)

我们建议您通过composer安装Razecode_Banner模块。它易于安装、更新和维护。

注意:请使用composer 2以避免安装过程中的任何错误。

在Magento 2根目录下运行以下命令。

1.1 安装

composer require razecode/banner
php bin/magento setup:upgrade
php bin/magento setup:static-content:deploy

1.2 升级

composer update razecode/banner
php bin/magento setup:upgrade
php bin/magento setup:static-content:deploy

如果您的商店处于生产模式,请运行编译命令

php bin/magento setup:di:compile

2. 复制粘贴

如果您不想通过composer安装,可以使用这种方法。

  • 在此处下载最新版本 (点击此处下载)
  • master.zip文件解压到app/code/Razecode/Banner;如果不存在,您应该创建路径app/code/Razecode/Banner
  • 转到Magento根目录并运行升级命令行以安装Razecode_Banner
php bin/magento setup:upgrade
php bin/magento setup:static-content:deploy

截图

homepage-banner-slider.png

使用以下代码在CMS页面和静态块上添加横幅

1. 手动添加横幅

{{block class="Razecode\Banner\Block\BannerSlider" template="Razecode_Banner::bannerslider.phtml" name="razecode.banner"}}

2. 从管理员配置中添加横幅

转到

商店 > 配置 > Razecode > 横幅滑块 > 通用配置 > 从布局xml文件中显示滑块(默认)

注意

此扩展需要基础模块。

在此处下载基础模块最新版本 (点击此处下载)