小泥鳅模板标签
模板标签在主题模板文件中使用,用来动态的显示内容或自定义网站。
如果您想要制作自己的主题或DIY模板,您需要了解这些标签。
标签列表(对应程序版本:1.2.0.0):
| 标签名称 | 说明 | 使用范围(默认为全局) | 示例 |
| 全局 | |||
| sitename | 网站名称 | ${sitename} | |
| sitedescription | 网站描述 | ${sitedescription} | |
| metakeywords | 页面关键字 | ${metakeywords} | |
| metadescription | 页面描述 | ${metadescription} | |
| footerhtml | 页底HTML | ${footerhtml} | |
| version | 程序版本 | ${version} | |
| pagetitle | 页面标题 | ${pagetitle} | |
| siteurl | 网站URL | ${siteurl} | |
| sitepath | 网站路径 | ${sitepath} | |
| themepath | 模板路径 | ${themepath} | |
| themeurl | 模板URL(1.2新增) | ${themeurl} | |
| head | HTML标签中HEAD内多种标签的封装(1.2新增) | ${head} | |
| isdefault | 是否为首页 | ${isdefault} | |
| ispost | 是否为文章页 | ${ispost} | |
| feedurl | 订阅URL | ${feedurl} | |
| feedcommenturl | 订阅评论URL | ${feedcommenturl} | |
| pager | 分页 | ${pager} | |
| pagerindex | 当前第几页 | ${pagerindex} | |
| url | 当前URL | ${url} | |
| date | 当前日期 | ${date} | |
| archives | 归档(集合) | ${archives} | |
| searchkeyword | 搜索关键字 | ${searchkeyword} | |
| querycount | 数据库查询数次 | ${querycount} | |
| processtime | 页面执行时间 | ${processtime} | |
| enableverifycode | 是否使用验证码(值为1或0) |
#if($enableverifycode==1) #end |
|
| 文章 | |||
| post | 文章(实体) | 文章页 |
post 实体对应的字段:
|
| posts | 分页文章列表(集合) | 文章列表页 |
这几种集合使用方法相同,例:
#foreach($item in $posts) |
| recentposts | 最近文章列表(集合) | ||
| recommendposts | 推荐文章列表(集合) | ||
| topposts | 置顶文章列表(集合) | ||
| feedposts | 订阅文章列表(集合) | 订阅文章列表页 | |
| postmessage | 文章列表信息(作者,分类等) | 文章列表页 | ${postmessage} |
| 评论 | |||
| comments | 分页评论列表(集合) | 文章页 |
#foreach($item in $comments) |
| recentcomments | 最近评论列表(集合) |
#foreach($item in $recentcomments) |
|
| commentauthor | 发表评论时填写的名称 | ${commentauthor} | |
| commentemail | 发表评论时填写的名称邮箱 | ${commentemail} | |
| commentsiteurl | 发表评论时填写的名称网站 | ${commentsiteurl} | |
| commentcontent | 发表评论时填写的名称内容 | ${commentcontent} | |
| commentmessage | 发表评论时填写的提示 | ${commentmessage} | |
| 其它 | |||
| tags(待定) | |||
| recenttags(待确定) | 标签列表(集合) |
#foreach($item in $recenttags) |
|
| categories | 分类(集合) |
#foreach($item in $categories) |
|
| authors | 作者(集合) |
#foreach($item in $authors) |
|
| links | 所有连接(集合) |
#foreach($item in $links) |
|
| navlinks | 导航连接(集合) |
#foreach($item in $navlinks) |
|
| generallinks | 普通连接(集合) |
#foreach($item in $generallinks) |
|
| 统计 | |||
| postcount | 文章数 | ${postcount} | |
| commentcount | 评论数 | ${commentcount} | |
| authorcount | 作者数 | ${authorcount} | |
| viewcount | 浏览数 | ${viewcount} | |

记住个人信息?
有回复时邮件通知我?
建议增加评论引用和增加回复BUTTON,
这样评论比较便捷。
谢谢你的建议
http://dev.mo.cn/
这个模板很经典的。。。
泥鳅费费神 做个呗。。。。
@zhuer
其实自己改下也挺简单的
请问如何设置首页显示的标签数量?谢谢~
@gy
标签数量暂时没提供显示,请期待新版本