CMS-Komponenten-Demo

Plugins können CMS-Komponenten bereitstellen – einfache Bausteine für Seiten, Layouts und Partials. Sehen Sie sich das To-Do-Beispiel unten an.

HTML-Markup für dieses Beispiel

{% component 'demoTodo' %}

Wait, only one line is needed? Yes! CMS components are simple building blocks that can be used with a small amount of code. Components encapsulate PHP code and partials and can be included in a page, layout or partial with a single line of code. By sharing plugins between multiple projects, you can reuse CMS components and be more productive. The demoTodo component used here is provided by the plugin called OctoberDemo, you can find it in the plugins/october/demo folder.