eadesignro/module-mobiledetect
Composer 安装命令:
composer require eadesignro/module-mobiledetect
包简介
Magento 2 EaDesign Mobile Detect System
README 文档
README
Magento 2 Mobile detect system can be used to load different themes base on the client device (desktop, tablet, mobile). It uses the library https://github.com/serbanghita/Mobile-Detect.
How to use the module
The main configuration can be done under the Content > Design > Configuration. There (Design Rule > User Agent Rules) you can add user agent expressions.
- add
eadesign_is_mobileto load a theme for mobile - add
eadesign_is_tabletto load a theme for tablet - add
eadesign_is_desktopto load a theme for desktop
Under system configurations you need to enable the extension. Also there you will find 3 fields for redirects. If you add a url to the mobile field for example the user will be redirected to the url in there. This can be useful if you want to use a different website/store view url for the mobile theme.
Installation.
You can install the module via composer or manually by adding it to the app/code directory. The module is available on packagist.org.
Via composer
composer config repositories.magento2-mobiledetect git git@github.com:EaDesgin/magento2-mobiledetect;
composer require eadesignro/module-mobiledetect;
php bin/magento setup:upgrade;
Uninstall
You need to remove the module.
composer remove eadesignro/module-mobiledetect;
eadesignro/module-mobiledetect 适用场景与选型建议
eadesignro/module-mobiledetect 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 278 次下载、GitHub Stars 达 28, 最近一次更新时间为 2016 年 12 月 14 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 eadesignro/module-mobiledetect 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 eadesignro/module-mobiledetect 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 278
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 28
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: AL-2.0
- 更新时间: 2016-12-14