Skip to content

Kirby 6.0.0

Templates

Templates are registered with the templates extension. The extension accepts an array of key/value pairs, where the key is the name of the template and the value the path to the file in your plugin folder.

/site/plugins/your-plugin/index.php
Kirby::plugin(
    name: 'your/plugin',
    extends: [
        'templates' => [
            'blog' => __DIR__ . '/templates/blog.php'
        ]
    ]
);