bkindler/bjk-responsive-visibility
Composer 安装命令:
composer require bkindler/bjk-responsive-visibility
包简介
Adds a minimum viewport breakpoint selector to all content elements. Elements are hidden below the chosen breakpoint using Bootstrap CSS utility classes.
README 文档
README
Adds a minimum viewport breakpoint selector to all content elements. Elements are hidden below the chosen breakpoint using Bootstrap CSS utility classes (d-none d-{breakpoint}-block).
What does it do?
This extension adds a "Minimum Viewport" dropdown to the Appearance tab of every content element. When a breakpoint is selected, the element is only visible at that screen width and above.
No custom CSS is needed — it leverages Bootstrap 5 utility classes already included in the Bootstrap Package.
Breakpoints
| Option | Min-Width | CSS Classes Applied |
|---|---|---|
| Always visible | — | None (no wrapper) |
| From SM | ≥ 576px | d-none d-sm-block |
| From MD | ≥ 768px | d-none d-md-block |
| From LG | ≥ 992px | d-none d-lg-block |
| From XL | ≥ 1200px | d-none d-xl-block |
| From XXL | ≥ 1400px | d-none d-xxl-block |
Requirements
- TYPO3 CMS 11.5 – 14.x
- Bootstrap Package 14.x – 16.x
- PHP 8.1+
Installation
Via Composer (recommended)
composer require bkindler/bjk-responsive-visibility
Via TYPO3 Extension Manager
- Download the extension ZIP file
- Go to Admin Tools → Extensions
- Click Upload Extension and select the ZIP file
- Activate the extension
Include TypoScript
TYPO3 14 (Site Sets): Add the "Responsive Visibility" set to your site configuration.
TYPO3 11–13 (Static Templates): Include the static template "Responsive Visibility (bjk_responsive_visibility)" in your TypoScript template record.
Usage
- Edit any content element
- Switch to the Appearance tab
- Select the desired Minimum Viewport breakpoint
- Save — the element will only be visible at that screen width and above
How it works
The extension wraps content elements in a <div> with Bootstrap's responsive display utility classes. For example, selecting "From MD" produces:
<div class="d-none d-md-block"> <!-- content element output --> </div>
The d-none class hides the element by default, and d-md-block makes it visible again from the MD breakpoint (768px) upwards.
License
This extension is licensed under the GNU General Public License v2.0 or later.
Author
Björn Kindler
- Email: info@kindler-webservices.de
- GitHub: @bkindler
bkindler/bjk-responsive-visibility 适用场景与选型建议
bkindler/bjk-responsive-visibility 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 6 次下载、GitHub Stars 达 0, 最近一次更新时间为 2026 年 02 月 23 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 bkindler/bjk-responsive-visibility 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 bkindler/bjk-responsive-visibility 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 6
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 36
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GPL-2.0-or-later
- 更新时间: 2026-02-23