页面详情
可建立任意模板名作为页面的路由。通过http://域名/模板名 来访问页面,并且使用下面标签调用页面数据。
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
使用页面标签可调用单篇独立的页面内容。
http://域名/模板名 来访问页面,并且使用下面标签调用页面数据。
{var $name = '调用名'}
{var $info = \App\Content\Service\Page::info($name)}
<h1>页面标题:{$info->title}</h1>
{var $query = \App\Content\Service\Page::query($where = [])}
| 调用名 | 类型 | 说明 |
|---|---|---|
| id | 整数 | 页面 ID |
| name | 字符串 | 调用名 |
| title | 字符串 | 页面标题 |
| subtitle | 字符串 | 页面副标题 |
| image | 数组 | 页面主图 |
| content | 字符串 | 页面正文 |
| virtual_view | 整数 | 虚拟访问量 |
| view | 整数 | 访问量 |
{$info->virtual_view + $info->view}