upassist/neos-editornotifications 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

upassist/neos-editornotifications

最新稳定版本:v1.0.2

Composer 安装命令:

composer require upassist/neos-editornotifications

包简介

Admin-managed backend notifications for Neos CMS editors

README 文档

README

Admin-managed backend notifications for Neos CMS editors.

Features

  • Admin module at /neos/management/notifications for creating and managing notifications
  • Markdown editor with toolbar (bold, italic, lists, links, images) and live preview
  • Image uploads stored as Flow persistent resources
  • Scheduling with optional show-from and show-until date/time windows
  • Lifecycle management — draft → published → archived, with publish/unpublish/archive actions
  • Per-user read state — tracks seen, dismissed, and removed state per editor
  • Content module plugin — bell icon badge with unread count, slide-out notification panel with accordion layout
  • Mark all read — editors can mark all notifications as read at once
  • Security — role-based access: admins manage notifications and upload images, editors can only read/dismiss
  • i18n — Dutch and English translations

Requirements

  • Neos CMS 8.x or 9.x
  • PHP 8.1+
  • league/commonmark ^2.0 (installed via Composer)

Installation

composer require upassist/neos-editornotifications
./flow doctrine:migrate

Configuration

The package registers itself automatically via Settings.yaml. No additional configuration needed.

  • Backend module: appears under Management → Notifications
  • Content module plugin: bell icon loads automatically for all editors
  • Policies: Administrators get full access; Editors can view, mark as read, and dismiss

Architecture

Classes/
├── Api/Controller/NotificationApiController.php     # JSON API (active, unreadCount, markSeen, markAllSeen, markUnseen, dismiss, removeForCurrentUser, uploadImage)
├── Controller/Backend/Module/
│   └── NotificationModuleController.php             # Admin CRUD + publish/unpublish/archive
├── Domain/
│   ├── Model/Notification.php                       # Title, contentMarkdown, content (HTML), scheduling, lifecycle
│   ├── Model/NotificationReadState.php              # Per-user seen/dismissed/removed tracking
│   └── Repository/                                  # Query builders with filter and pagination support
└── Service/NotificationService.php                  # Business logic, markdown rendering, read state

Resources/
├── Private/
│   ├── Fusion/Backend/                              # Index (list + filters + pagination) and Form (editor + preview)
│   └── Translations/                                # Dutch (nl) and English (en) XLIFF
└── Public/
    ├── JavaScript/Module/Module.js                  # Markdown editor with toolbar and image upload
    ├── JavaScript/NotificationPlugin/Plugin.js      # Content module badge and slide-out panel
    └── Styles/Module.css                            # Admin module dark theme styling

Notification lifecycle

State Condition
Draft Created but not published (publishedAt is null)
Published publishedAt set, visible to editors if within show window
Scheduled Published but showFrom is in the future
Expired Published but showUntil is in the past
Archived archivedAt set, hidden from editors

Active notifications cannot be deleted directly — archive them first. Drafts, archived, expired, and scheduled notifications can be deleted.

API endpoints

All API routes are prefixed with /neos/notifications/api/.

Action Method Description
active GET Active notifications for current user (with read state)
unreadCount GET Number of unread notifications
markSeen POST Mark a notification as seen
markAllSeen POST Mark all active notifications as seen
markUnseen POST Mark a notification as unread
dismiss POST Dismiss (hide) a notification
removeForCurrentUser POST Permanently remove a notification for the current user
uploadImage POST Upload an image (admin, max 10 MB, JPEG/PNG/GIF/WebP)

Security

Role Privileges
Neos.Neos:Administrator Full CRUD, publish/archive, image upload, read notifications
Neos.Neos:Editor Read, mark seen/unseen, mark all seen, dismiss, remove for self

License

MIT

统计信息

  • 总下载量: 0
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 3
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-04-01

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固