TanzCMS开源CMS系统

快速开始

从栏目、模型、模板三个角度理解前台页面。

更新:2026-05-30 01:51:14 浏览:3

快速开始

基本流程

  1. 在后台创建内容模型。
  2. 创建栏目并选择模型。
  3. 为栏目配置列表模板、详情模板或单页模板。
  4. 在主题目录编写 .html 模板。

模板入口

{template "header.html"}
<section class="site-shell">
  <h1>{$category.name}</h1>
  <p>{$category.description}</p>
</section>
{template "footer.html"}

提示

列表页优先读取栏目配置的 list_template,详情页优先读取栏目配置的 show_template