Plugin Development Cheatsheet
When writing plugins, you often wonder "which file should I put this in and which API should I call?" This cheatsheet helps you quickly find the answer.
Plugin Directory Structure
Create a plugin with yarn pm create @my-project/plugin-name, which automatically generates the following directory structure. Do not create directories manually to avoid missing registration steps that would cause the plugin to not work. See Writing Your First Plugin for details.
Client-Side: What I Want to Do -> How to Write It
Server-Side: What I Want to Do -> How to Write It
FlowModel Cheatsheet
Translation Method Cheatsheet
Common API Call Cheatsheet
Related Links
- Client Development Overview — Learning path and quick index
- Plugin — Plugin entry and lifecycle
- FAQ & Troubleshooting Guide — Common pitfalls
- Router — Page route registration
- FlowEngine - Block Extension — BlockModel base classes
- FlowEngine - Field Extension — FieldModel development
- FlowEngine - Action Extension — ActionModel development
- Collections — defineCollection and field types
- i18n Internationalization — Translation file format
- ResourceManager — Custom REST APIs
- ACL — Permission configuration
- Plugin (Server) — Server plugin lifecycle
- Writing Your First Plugin — Plugin scaffolding

