daandelange/tabsfield
Composer 安装命令:
composer require daandelange/tabsfield
包简介
A tabs field for the panel, to use with `when` conditions in field and section blueprints.
README 文档
README
A tabs field for the panel, to use with when conditions in field and section blueprints.
Features:
- Uses the native
k-tabspanel component (slightly extended). - Remembers the last open tab (using the browser's local storage).
- The field value is never saved in the content file (but present in the panel's form values).
- The field value is available for usage with
whenconditions (javascript). - Tabs can have labels and icons.
Note: As of version 1.0.0, this plugin doesn't use KirbyContentHackModule anymore. Thanks to Kirby4 panel changes, the implementation is way cleaner now.
Requirements
Please refer to the following Kirby version compatibility table.
| Kirby version | TabsField version |
|---|---|
| Kirby 3.6+ | TabsField 0.1.0-beta+ |
| Kirby 4.0+ | Unsupported |
| Kirby 5.0+ | TabsField 1.0.1+ |
Installation
- Manually: Download and copy this repository to
/site/plugins/tabsfield. - Git submodule:
git submodule add https://github.com/daandelange/kirby-tabsfield.git site/plugins/tabsfield - Composer:
composer require daandelange/tabsfield
Setup
Everything is scriptable trough blueprints.
- Add one or multiple
tabsfield(s) to your fields sections, providing each of them with sometabs. More information on native Kirby Tabs.
*Note: As any kirby field, every tab field must have a unique key within your blueprint setup. - Add corresponding
when:conditions to your fields and/or sections.
Example / Tutorial:
sections: fields: type: fields sticky: true fields: sidebartab: type: tabs # Tabs must have a name and a both optional label and icon tabs: - name: metainfo icon: tag label: Info - name: files icon: file label: Files categories: type: tags label: Categories # Shows this individual field when the metainfo tab is active when: sidebartab: metainfo author: type: users label: Author min: 1 required: true # Shows this individual field when the metainfo tab is active when: sidebartab: metainfo files: type: files headline: File Manager # Shows this individual field when the files tab is active # (the same can be done with a files section) when: sidebartab: files
Options
There are no options available yet. Would you like to contribute some ?
Development
pnpm install: Install the required dependencies.pnpm run dev: Develop mode (listen/compile).pnpm run build: Compile for publishing.
License
MIT - Free to use, free to improve !
However, for usage in commercial projects, please consider to improve the plugin a little and contribute back the changes with a PR, or hire someone to do so.
Credits
In loving memory of the Kirby 2 alternative : Kirby-Tabs-Field by @afbora.
Author: Daan de Lange
daandelange/tabsfield 适用场景与选型建议
daandelange/tabsfield 是一款 基于 Vue 开发的 Composer 扩展包,目前已累计 2 次下载、GitHub Stars 达 19, 最近一次更新时间为 2025 年 05 月 07 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「kirby3」 「kirby-plugin」 「kirby-cms」 「kirby5」 「kirby-field-plugin」 「kirby-panel-plugin」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 daandelange/tabsfield 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 daandelange/tabsfield 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 daandelange/tabsfield 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Kirby 5 field for hierarchical menus with drag & drop level indentation.
Show references to a page or file on the objects blueprint.
Courier offers a convenient and painless solution for creating emails tailored for your Kirby website.
Plausible integration for Kirby CMS
A image cropping field for kirby.
Kirby Admin Bar
统计信息
- 总下载量: 2
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 19
- 点击次数: 35
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-05-07
