CMS 组件演示

插件可提供 CMS 组件——用于丰富页面、布局与局部的简单构建块。请参阅下方的待办示例。

该示例的 HTML 标记

{% 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.