justinholtweb/craft-peek
Composer 安装命令:
composer require justinholtweb/craft-peek
包简介
Content staging, visual diff, and coordinated releases for Craft CMS.
README 文档
README
Peek gives editorial teams field-by-field diff comparison, side-by-side visual preview, and coordinated multi-entry releases for Craft CMS 5.
Features
- Field Diff — Side-by-side comparison of every field between a draft and its live entry, with syntax-highlighted changes
- Visual Preview — Two-pane iframe preview showing live vs. draft with synchronized scrolling
- Releases — Group multiple drafts into a release and publish them atomically (all or nothing)
- Scheduled Publishing — Set a future date and let Peek auto-publish via cron
- Dashboard — Overview of pending drafts, stale drafts, and active releases across the site
- Entry Sidebar — See changed field count, diff link, and release membership directly in the draft editor
Requirements
- Craft CMS 5.0.0 or later
- PHP 8.2 or later
Installation
composer require justinholtweb/craft-peek php craft plugin/install peek
Scheduling
To enable scheduled releases, add a cron job that runs every minute:
* * * * * /path/to/craft peek/scheduler/check
Permissions
| Permission | Description |
|---|---|
| Access Peek | View the Peek CP section |
| View diffs | View field-by-field diff comparisons |
| Manage releases | Create, edit, and manage releases |
| Publish releases | Publish releases (apply all drafts) |
| Schedule releases | Set scheduled publish dates |
| Delete releases | Delete releases |
| Manage Peek settings | Access plugin settings |
Configuration
Settings are available in the Craft CP under Peek > Settings, or via config/peek.php:
return [ 'staleDraftDays' => 14, 'defaultSiteId' => null, 'enableVisualPreview' => true, 'maxEntriesPerRelease' => 50, ];
统计信息
- 总下载量: 0
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: proprietary
- 更新时间: 2026-06-12