notedis/craft-notedis
Composer 安装命令:
composer require notedis/craft-notedis
包简介
Embed a Notedis.com feedback widget on your Craft CMS site.
README 文档
README
Add a floating feedback button to your Craft CMS site that lets visitors submit feedback, bug reports, and feature requests directly to your Notedis.com account.
Description
The Notedis Widget plugin integrates the Notedis.com feedback widget into your Craft CMS site. Once configured, a floating feedback button will automatically appear on your site, allowing visitors to:
- Submit feedback with categories (Bug, Feature, Improvement, Question)
- Take annotated screenshots
- Provide detailed information automatically (browser, device, page URL, etc.)
- Send feedback directly to your Notedis.com dashboard
Features
- Automatic Integration: Feedback button appears site-wide with zero configuration beyond site key
- Customizable Appearance: Control button position and color
- User Control: Show to all visitors or only logged-in users
- Admin Support: Optionally show in Craft CMS control panel for team feedback
- Secure: Proper input validation and sanitization
- Craft Standards: Follows Craft CMS coding standards and best practices
Requirements
- Craft CMS: 4.0+ or 5.0+
- PHP: 8.0.2 or higher
- Notedis.com Account: Active account with valid site key
- Modern Browser: For visitors using the widget
Installation
Via Composer (Recommended)
- Open your terminal and navigate to your Craft project:
cd /path/to/project
- Require the plugin package:
composer require notedis/craft-notedis
- Install the plugin:
php craft plugin/install notedis
Manual Installation
- Download or clone this repository
- Copy the repository contents to your
vendor/notedis/craft-notedisdirectory - Install the plugin from the Craft control panel: Settings → Plugins → Notedis Widget → Install
Configuration
Getting Your Site Key
- Log in to your Notedis.com account
- Navigate to your account settings
- Find your site key in the API section
- Copy it to your clipboard
Plugin Settings
Go to Settings → Plugins → Notedis Widget → Settings in the Craft control panel:
Required Settings
Site Key (Required)
- Your unique Notedis.com site key
- Get this from your Notedis account
- The widget will not appear without a valid site key
Optional Settings
API Endpoint
- Default:
https://notedis.com - Leave as default unless instructed by Notedis support
Button Position
- Choose where the feedback button appears
- Options: Bottom Right (default), Bottom Left, Top Right, Top Left
Button Color
- Customize the button color to match your brand
- Default:
#3B82F6(blue) - Use the color picker or enter a hex color code
Logged-in Users Only
- When enabled, only logged-in Craft CMS users see the feedback button
- Useful for private sites, membership sites, or internal testing
- Default: Disabled (everyone can see the button)
Show in Control Panel
- When enabled, the feedback button also appears in Craft CMS control panel
- Great for collecting feedback from your team while they work
- Default: Disabled (frontend only)
Widget Source
- Local: Loads widget.js from your server (recommended for compliance)
- CDN: Loads from Notedis.com (always gets latest updates)
- Default: Local
How It Works
- Visitor clicks the feedback button - The floating button appears on every page
- Modal opens - A feedback form slides in with categories and options
- Visitor fills out feedback - They can choose category, priority, add screenshots with annotations
- Feedback is sent - Goes directly to your Notedis.com dashboard
- You review - View all feedback in your Notedis account with full context
Configuration Examples
Example 1: Public Website
Site Key: your-key-here
Position: bottom-right
Color: #3B82F6
Logged-in Users Only: ☐ Disabled
Show in Control Panel: ☐ Disabled
Result: All visitors see button on frontend pages only
Example 2: Members-Only Feedback
Site Key: your-key-here
Position: bottom-left
Color: #10B981
Logged-in Users Only: ☑ Enabled
Show in Control Panel: ☐ Disabled
Result: Only logged-in members see button on frontend
Example 3: Internal Team Tool
Site Key: your-key-here
Position: top-right
Color: #F59E0B
Logged-in Users Only: ☑ Enabled
Show in Control Panel: ☑ Enabled
Result: Team sees button everywhere (frontend + control panel)
Example 4: Maximum Visibility
Site Key: your-key-here
Position: bottom-right
Color: #EF4444
Logged-in Users Only: ☐ Disabled
Show in Control Panel: ☑ Enabled
Result: Everyone sees button on all pages including control panel
Technical Details
What Gets Loaded
The plugin loads the official Notedis widget from:
https://notedis.com/js/widget.js (if using CDN)
Or from the local bundled version if using Local mode.
And configures it with:
window.notedisConfig = { siteKey: 'your-site-key', apiUrl: 'https://notedis.com', position: 'bottom-right', color: '#3B82F6' };
Craft CMS Integration
The plugin:
- Only loads the widget when a valid site key is configured
- Respects logged-in user settings
- Can load in control panel if enabled
- Uses Craft CMS best practices for asset management
- Properly validates and sanitizes all settings
- Follows Craft CMS coding standards
Performance
- Minimal overhead - just loads one external JavaScript file
- No database queries on frontend (settings cached)
- Lazy-loads the Notedis widget script
- No impact on page load speed
Troubleshooting
Widget Not Appearing
- Check Site Key - Ensure you've entered a valid site key from Notedis.com
- Check Browser Console - Look for JavaScript errors
- Check User Settings - If "Logged-in Users Only" is enabled, log in
- Clear Cache - Clear Craft cache and browser cache
- Check Conflicts - Temporarily disable other plugins to check for conflicts
Widget Appears But Doesn't Work
- Verify Site Key - Ensure the site key is active in your Notedis account
- Check Browser Compatibility - Widget requires modern browsers
- Check for JavaScript Errors - Open browser console and look for errors
- Contact Notedis Support - The issue may be with your Notedis account
Security
This plugin follows Craft CMS security best practices:
- All settings are validated and sanitized
- All output is properly escaped
- Site keys stored securely in Craft project config
- No direct file access allowed
- External script loaded from official Notedis CDN only (when using CDN mode)
Support
- Plugin Issues: Open an issue on the GitHub repository
- Notedis Service: Contact Notedis.com support
- Documentation: Visit Notedis.com for widget documentation
License
MIT
Changelog
1.0.0 - 2024-11-22
- Initial release
- Loads Notedis.com feedback widget
- Configurable site key, position, and color
- Option to show only to logged-in users
- Option to show in Craft CMS control panel
- Craft CMS 4 and 5 compatible
- PHP 8.0.2+ compatible
- Secure and performant
Credits
Developed for Notedis.com
notedis/craft-notedis 适用场景与选型建议
notedis/craft-notedis 是一款 基于 JavaScript 开发的 Composer 扩展包,目前已累计 15 次下载、GitHub Stars 达 0, 最近一次更新时间为 2025 年 11 月 23 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「cms」 「widget」 「feedback」 「Craft」 「craftcms」 「bug tracking」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 notedis/craft-notedis 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 notedis/craft-notedis 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 notedis/craft-notedis 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
GraphQL authentication for your headless Craft CMS applications.
Yii2 LightBox image galary widget uses Lightbox v2.10.0 by Lokesh Dhakar
Set Links with a specific language parameter
Supercharged text field validation.
Symfony2 Bundle for Bootstrap MaxLength.js - An visual feedback indicator for the MaxLength attribute
TYPO3 Feedback Extension - The TYPO3 Feedback Extension is a great tool for gathering feedback from visitors or customers on your website. With the All In One TYPO3 Feedback extension, website admin can easily add feedback forms in various styles to their website, allowing them to collect valuable i
统计信息
- 总下载量: 15
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 24
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-11-23