tobimori/kirby-role-blueprints
Composer 安装命令:
composer require tobimori/kirby-role-blueprints
包简介
Load different blueprints based on user roles in Kirby CMS
README 文档
README
STILL works for Kirby 4 and Kirby 5!
Simplified & automatic loading of different blueprints based on user roles in Kirby CMS.
Simply attach the role name as suffix to the blueprint file name and the plugin will load the corresponding blueprint.
Usage
site
└── blueprints
└── site.admin.yml -> Like site.yml, for admin users only
└── site.default.yml -> Any other user
└── pages
├── blog-post.admin.yml -> Like pages/blog-post.yml, for admin users only
├── blog-post.editor.yml -> Editor users only
└── blog-post.default.yml -> Any other user
Example
Since Kirby loads the blueprints normally as well, you can use a top-level extends in your blueprint to change single items.
# site.default.yml title: overview tabs: main: # [...] seo: seo/site
# site.admin.yml extends: site.default tabs: admin: tabs/admin-tools
In this case, the admin tab will be appended after the seo tab.
Support the project
Note
This plugin is provided free of charge & published under the permissive MIT License. If you use it in a commercial project, please consider sponsoring me on GitHub to support further development and continued maintenance of my Kirby plugins.
License
MIT License Copyright © 2024 Tobias Möritz
tobimori/kirby-role-blueprints 适用场景与选型建议
tobimori/kirby-role-blueprints 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 404 次下载、GitHub Stars 达 22, 最近一次更新时间为 2024 年 04 月 23 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 tobimori/kirby-role-blueprints 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 tobimori/kirby-role-blueprints 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 404
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 22
- 点击次数: 19
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2024-04-23