Menu

Z-BlogPHP Template Syntax Summary

This article was last updated 37 days ago, please note whether the content is still available

System Tags

TagDescriptionTagDescription
{$name}Blog URL{$subname}Blog Title
{$host}Blog URL{$theme}Theme Name
{$style}Style Name{$copyright}Copyright Information
{$version}Z-BlogPHP Version Number{$zblogphp}Z-BlogPHP Version Information
{$zblogphphtml}Z-BlogPHP Link (long){$zblogphpabbrhtml}Z-BlogPHP Link (short)
{$language}Website Language{$header}Page Header Variables
{$footer}Page Footer Variables{$type}Page Type
{$page}Current Page Number{$socialcomment}Social Comment Section
{$cookiespath}Cookie Path{$path}Website Directory Physical Path

Tag Pages

TagDescriptionTagDescription
{$tag.Name}Tag Name{$tag.Url}Tag Link
{$tag.Count}Number of articles under the tag

Category Tags

Call in summary or article sub-template pages: $article.Category.xxx

TagDescriptionTagDescription
{$category.ID}Category ID{$category.Name}Category Name
{$category.Alias}Category Alias{$category.Url}Category Link
{$category.Count}Number of articles in the category{$category.Intro}Category Summary
{$category.Order}Category Order{$category.Level}Category Level
{$category.RootID}Top-level ID of the category{$category.ParentID}Parent ID of the category
{$category.Parent}Parent category instance{$category.SubCategorys}Array of sub-category instances
{$category.Template}Template used by the category{$category.LogTemplate}Template used for articles in the category
{$category.Metas.XXX}Category Extended Data

User Tags

Article page: $article.Author.xxx

Current logged-in user information: $user.xxx

Current page author information: $author.xxx, can only be called on user-exclusive pages

TagDescriptionTagDescription
{$author.Url}User page link{$author.Name}Username
{$author.Alias}User Alias{$author.StaticName}User Static Name
{$author.Level}User Level{$author.LevelName}User Level Name
{$author.Email}User Email{$author.HomePage}User Homepage
{$author.Intro}User Summary{$author.Avatar}User Avatar
{$author.Articles}Number of articles published by the user{$author.Pages}Number of pages created by the user
{$author.Comments}Number of comments posted by the user{$author.Uploads}Number of files uploaded by the user

Pagination Tags

TagDescriptionTagDescription
{$pagebar.PageBarCount}Pagination Length{$pagebar.PageCount}Number of articles displayed per page
{$pagebar.Name}Pagination Name{$pagebar.PageAll}Total number of pages
{$pagebar.PageNow}Current Page Number{$pagebar.PageFirst}Starting Page Number
{$pagebar.PageLast}Last Page Number{$pagebar.PagePrevious}Previous Page ID
{$pagebar.PageNext}Next Page ID{$pagebar.prevbutton}Previous Page URL
{$pagebar.nextbutton}Next Page URL{$pagebar.buttons}Page Number Association Array

Article Tags (including standalone pages)

TagDescriptionTagDescription
{$article.ID}Article ID{$article.Title}Article Title
{$article.Alias}Article Alias{$article.AliasFirst}Article Alias or Title
{$article.Url}Article Link{$article.IsTop}Whether the article is pinned
{$article.TopType}Article Pin Type{$article.Intro}Article Summary
{$article.Content}Article Content{$article.AllImages[0]}First image in the article
{$article.ImageCount}Article Image Count{$article.Thumbs(640, 360, 1, false)[0]}Thumbnail of the first image in the article
{$article.Status}Article Status (numeric){$article.StatusName}Article Status (name)
{$article.IsLock}Whether comments are disabled{$article.CommNums}Article Comment Count
{$article.ViewNums}Article View Count{$article.Time("PostTime","Y-m-d H:i:s")}Article Publish Time
{$article.Time("CreateTime","Y-m-d H:i:s")}Article Creation Time{$article.Time("UpdateTime","Y-m-d H:i:s")}Article Update Time
{$article.Category.XXX}Article Category Data{$article.Author.XXX}Article Author Data
{$article.Tags}Article Tags Array{$article.FirstTag}First Tag Object
{$article.TagsCount}Article Tag Count{$article.TagsName}Comma-separated article tags
{$article.Prev.Url}Previous Article URL{$article.Next.Url}Next Article URL
{$article.Prev.Title}Previous Article Title{$article.Next.Title}Next Article Title
{$article.Type}Article Type ID{$article.TypeName}Article Type Name

Comment Tags

TagDescriptionTagDescription
{$comment.ID}Comment ID{$comment.FloorID}Comment Floor Number
{$comment.Level}Comment Level{$comment.ParentID}Comment Parent ID
{$comment.RootID}Comment Root ID{$comment.LogID}Comment's associated article/page ID
{$comment.Author.Name}Comment Author{$comment.Author.HomePage}Comment Author's Website
{$comment.Author.Email}Comment Author's Email{$comment.Author.Avatar}Comment Author's Avatar URL
{$comment.Post.Url}Link to the article associated with the comment{$comment.Post.Title}Title of the article associated with the comment
{$comment.Content}Comment Content{$comment.IP}Commenter's IP Address
{$comment.Agent}Commenter's Client Information{$comment.Time(XXX)}Comment Publish Time

Module Tags

TagDescriptionTagDescription
{module:navbar}Navigation Bar{module:calendar}Calendar
{module:controlpanel}Control Panel{module:catalog}Website Catalog
{module:searchpanel}Search{module:comments}Latest Comments
{module:archives}Article Archives{module:statistics}Site Information
{module:favorite}Website Favorites{module:link}Friendship Links
{module:misc}Icon Collection{module:authors}Author List
{module:previous}Recently Posted{module:tags}Tags List

Specific Module Tags

TagDescriptionTagDescription
{$modules["modName"].ID}Internal ID{$modules["modName"].Name}Module Name
{$modules["modName"].FileName}File Name{$modules["modName"].Content}Module Content
{$modules["modName"].HtmlID}HTML ID{$modules["modName"].Type}Module Type
{$modules["modName"].MaxLi}Maximum number of columns for ul type modules{$modules["modName"].Source}Module Properties
{$modules["modName"].IsHideTitle}Whether to hide the title

Helpful?

Comments(2)

飞云剑客
飞云剑客

2025-10-14 09:05:35

这篇文章详细介绍了Z-BlogPHP中各种标签的用法和说明,对于开发者来说是一份实用的参考指南。
剑影飞鸿
剑影飞鸿

2025-10-09 21:25:45

文章内容详实,涵盖了网站系统、标签、分类、作者、分页、单篇文章、评论等多个方面,为网站开发提供了丰富的标签参考。

Post comment

Support Live Chat
TOP