messageagency/ma_gridmenu
Composer 安装命令:
composer require messageagency/ma_gridmenu
包简介
This module and core patch patch provides the necessary codebase to add grid-style children menus to Drupal 8 sites.
README 文档
README
This module and core patch patch provides the necessary codebase to add grid-style children menus to Drupal 8 sites.
Version 1.1
Installation
- Download repo as zip and install as you would any other module (In D8, this means copying the module into the modules or modules/custom directory).
- Apply the core patch. The patch addresses the concerns detailed here: https://www.drupal.org/node/2631468. The patch allows us to follow the current page's entry in the main menu and use it as the bass from which children links are used in the menu. Hopefully this patch will be RTBC soon and merged into core.
- Create the Main Menu Block through the interface, noting the machine name for the block. Make sure to check off the "Make the starting level follow the active menu item." checkbox in the block config, and only use one level for depth.
- Navigate to Structure > Grid Menu Settings (/admin/structure/gridmenu/settings)
- Select one or more of the listed blocks to apply the grid menu layout to. Only menu blocks will be listed (both system menu blocks and menu blocks created using the Menu Block module).
- Save the settings.
Notes for Themers
- The base HTML for the content of the block is is located in the grid-menu.html.twig file in the templates directory.
- The HTML has ben re-written by Andre reflecting lessons learned theming the Gearing Up site.
- All of the class names can be found here for attaching CSS to.
- The image for the menu item is inserted into the anchor element as a background-image attribute. An image is only specified for applicable links: ones that belong to a piece of content with field_image field. External links and views do not have this information, for example. The background-image URL will be "" in these cases. (TODO: resolve this better in the code)
- A (very) base CSS file has been added for the grid menu. This includes support for background colors for when there is no image. Still need to add support for a default bg image.
messageagency/ma_gridmenu 适用场景与选型建议
messageagency/ma_gridmenu 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 27 次下载、GitHub Stars 达 0, 最近一次更新时间为 2021 年 08 月 26 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 messageagency/ma_gridmenu 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 messageagency/ma_gridmenu 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 27
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 5
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Unknown
- 更新时间: 2021-08-26