定制 justinholtweb/craft-peek 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: proprietary
  • 更新时间: 2026-06-12

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固