chandu / bannerslider
横幅轮播
1.0.3
2020-02-01 16:53 UTC
Requires
- php: ~7.1.3||~7.2.0||~7.3.0
- magento/framework: *
This package is auto-updated.
Last update: 2024-09-29 04:43:18 UTC
README
- 此模块旨在通过管理区域控制轮播横幅。
- 在管理区域中,您可以找到所有横幅的网格列表,您可以添加/编辑/删除横幅。
- 管理员可以为添加的任何横幅上传图片并提供该图片的链接。
- 此模块提供了一种将横幅添加到任何页面或静态块的功能。
兼容性: Magento 2.x
如何使用Composer安装
- 转到您的Magento安装目录
- 运行以下composer命令
composer require chandu/bannerslider
- 在M2根目录中运行命令
$ bin/magento module:enable Chandu_Bannerslider
- 然后运行以下命令
$ bin/magento setup:upgrade $ bin/magento setup:di:compile $ bin/magento cache:clean $ bin/magento cache:flush
用户信息
- 登录到您的Magento 2管理仪表板
- 转到横幅轮播->管理横幅
- 单击添加横幅以添加横幅图片详情
- 重复步骤2-3以添加更多横幅
- 要显示横幅轮播,请转到任何CMS页面或块并添加此块处理程序
{{block template="Chandu_Bannerslider::bannerslider.phtml" class="Chandu\Bannerslider\Block\Bannerslider" name="banners"}}
- 在前端清除缓存并刷新页面。
本模块使用的参考资料
- Magento文档
- Magento开发文档
- 现有的Magento源代码
- Ash smith博客
- Mageworld博客
- 一些关于前端工作的其他文章
构建此模块使用的资源
- PHPStorm
- VagrantBox (LAMP Stack)
- Git Bash
注意: 此模块仅手动测试。