landofcoder/module-megamenu-graph-ql
Composer 安装命令:
composer require landofcoder/module-megamenu-graph-ql
包简介
Magento 2 megamenu graphql extension
README 文档
README
``landofcoder/module-megamenu-graph-ql``
Requirement
Main Functionalities
magento 2 megamenu graphql extension
Installation
* = in production please use the --keep-generated option
Type 1: Zip file
- Unzip the zip file in
app/code/Lof - Enable the module by running
php bin/magento module:enable Lof_MegamenuGraphQl - Apply database updates by running
php bin/magento setup:upgrade* - Flush the cache by running
php bin/magento cache:flush
Type 2: Composer
- Make the module available in a composer repository for example:
- private repository
repo.magento.com - public repository
packagist.org - public github repository as vcs
- private repository
- Add the composer repository to the configuration by running
composer config repositories.repo.magento.com composer https://repo.magento.com/ - Install the module composer by running
composer require landofcoder/module-productlist-graph-ql - enable the module by running
php bin/magento module:enable Lof_MegamenuGraphQl - apply database updates by running
php bin/magento setup:upgrade* - Flush the cache by running
php bin/magento cache:flush
Query
- Get menu profile with menu alias
Flagment:
fragment MenuNode on MegamenuItemNode {
name
show_name
classes
child_col
sub_width
align
icon_position
icon_classes
is_group
status
disable_bellow
show_icon
icon
show_header
header_html
show_left_sidebar
left_sidebar_width
menu_id
left_sidebar_html
show_content
content_width
content_type
link_type
link
category
target
content_html
show_right_sidebar
right_sidebar_width
right_sidebar_html
show_footer
footer_html
color
hover_color
bg_color
bg_hover_color
inline_css
tab_position
before_html
after_html
caret
hover_caret
sub_height
hover_icon
dropdown_bgcolor
dropdown_bgimage
dropdown_bgimagerepeat
dropdown_bgpositionx
dropdown_bgpositiony
dropdown_inlinecss
parentcat
animation_in
animation_time
child_col_type
submenu_sorttype
isgroup_level
}
Query (get 3 levels of menu item node) for menu profile alias top-menu:
{
megamenu (alias: "top-menu") {
name
alias
disable_bellow
event
classes
width
disable_iblocks
desktop_template
scrolltofixed
mobile_template
nodes {
...MenuNode
child_nodes {
...MenuNode
child_nodes {
...MenuNode
}
}
}
}
}
- Get list available menu profiles
Query:
{
megamenus (
filters: {}
pageSize: 10
currentPage: 1
) {
items {
name
alias
}
}
}
- Get Store Config
Query:
storeConfig {
megamenu_general_enabled
megamenu_general_menu_alias
megamenu_general_custom_css
}
landofcoder/module-megamenu-graph-ql 适用场景与选型建议
landofcoder/module-megamenu-graph-ql 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 500 次下载、GitHub Stars 达 0, 最近一次更新时间为 2022 年 03 月 15 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 landofcoder/module-megamenu-graph-ql 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 landofcoder/module-megamenu-graph-ql 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 500
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 5
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: OSL-3.0
- 更新时间: 2022-03-15