dean-ward/craft-pinboard
Composer 安装命令:
composer require dean-ward/craft-pinboard
包简介
A flexible Craft CMS field which allows content editors to create and manage interactive images for location maps, product callouts, feature callouts, and more.
README 文档
README
A flexible Craft CMS fieldtype which allows content editors to create and manage interactive images for location maps, product callouts, feature callouts and more.
Field configuration screenshot
Content editor interface screenshot
Front end example screenshot
Features
- Create and manage interactive images
- Add multiple pins to an image
- Easy to use drag and drop interface
- Add pins for multiple element types to a single image
- Easily see which elements are pinned and which are not via the pin palette
- Simple to use on the front end
Coming Soon
- Front end javascript helpers to make it even easier to use on the front end
- Front end twig helpers to make it even easier to use on the front end
Example Front End Usage
<div class="backdrop"> <img src="{{ entry.<pinBoardField>.backdrop.url }}"/> {# loop over our pins, setting their top and left CSS attributes to position them #} {% for pin in entry.<pinBoardField>.pins %} {% set pinStyle = "top:" ~ pin.y ~ "%; left:" ~ pin.x ~ "%; ;transform: translate(-50%, -50%)" %} {% set labelStyle = "top:" ~ pin.y ~ "%; left:" ~ pin.x ~ "%; ;transform: translate(-50%, calc(-100% + -20px))" %} <div class="pin" style="{{pinStyle}}"></div> <div class="pinLabel" style="{{labelStyle}}"> {{ pin.title }} </div> {% endfor %} </div> <!-- You'll usually place your styles in a seperate file but this works for a demo --> <style> .backdrop { width: 80%; position: relative; } {# it is important to set the image with to no more than 100% #} .backdrop img { width: 100%; max-width: 100%; height: auto; } .pin { position: absolute; width: 20px; height: 20px; background-color: black; border: 2px solid white; border-radius: 50%; } .pinLabel { position: absolute; background-color: white; padding: 5px; border-radius: 5px; } </style>
dean-ward/craft-pinboard 适用场景与选型建议
dean-ward/craft-pinboard 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 27 次下载、GitHub Stars 达 0, 最近一次更新时间为 2024 年 06 月 29 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 dean-ward/craft-pinboard 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 dean-ward/craft-pinboard 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 27
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 11
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: proprietary
- 更新时间: 2024-06-29


