返回 Skill 列表
extension
分类: 开发与工程无需 API Key

kirby-core-development

Kirby CMS插件和模板开发,用于Cloodle平台。在创建Kirby插件、蓝图、模板、代码片段或处理Kirby内容结构时使用。

person作者: jakexiaohubgithub

Kirby Core Development

Create and modify Kirby CMS plugins, templates, and content for the Cloodle platform.

When to Use This Skill

  • Creating new Kirby plugins
  • Defining page blueprints
  • Building templates and snippets
  • Working with Kirby blocks
  • API route development

Server Paths

  • Kirby root: /opt/cloodle/apps/kirby/
  • Plugins: /opt/cloodle/apps/kirby/site/plugins/
  • Content: /opt/cloodle/apps/kirby/content/

Quick Start

See reference.md for complete patterns and examples.

Plugin Registration

<?php
Kirby::plugin('cloodle/my-plugin', [
    'blueprints' => [
        'pages/custom' => __DIR__ . '/blueprints/pages/custom.yml'
    ],
    'templates' => [
        'custom' => __DIR__ . '/templates/custom.php'
    ]
]);

Blueprint Structure

title: Custom Page
fields:
  text:
    type: blocks
    fieldsets:
      - heading
      - text
      - image

Existing Cloodle Plugins

  • cloodle/ - Portal dashboard
  • moodle-export/ - IMSCP export
  • zero-one/ - Theme plugin
  • oauth/ - Authentik integration