一般动作
登录
Wiki:
BROPEN
▼
:
Document Index
»
Space:
Blog
▼
:
Document Index
»
Page:
CategorySheet
搜索
default
页面动作
导出
▼
:
以PDF格式导出
以RTF格式导出
以HTML格式导出
更多动作
▼
:
打印预览
察看源码
欢迎进入Wiki
»
The Wiki Blog
»
Blog Category class
»
CategorySheet
Wiki源代码
CategorySheet
在2013-10-01 11:53上被
Administrator
修改
内容
·
评论
(0)
·
附件
(0)
·
记录
·
信息
显示行号
{{include document="Blog.CategoriesCode"/}} {{velocity}} {{html wiki=true}} #set ($discard = $xwiki.ssx.use("Blog.ManageCategories")) #set ($discard = $xwiki.jsx.use("Blog.ManageCategories")) #if ($doc.getObject($blogCategoryClassname)) #getEntriesForCategory($doc.fullName $discard $totalEntries) = Category: #getCategoryName($doc) ($totalEntries posts) [[#toolImage('feed' '[RSS]')>>Blog.CategoryRss||queryString="xpage=plain&category=$escapetool.url($doc.fullName)" title="RSS"]] = ## Keep testing the inline action for backward compatibility with older categories. #if ($xcontext.action != 'edit' && $xcontext.action != 'inline') {{include document="Blog.CreatePost"/}} #getCategoriesHierarchy($doc.space $tree) #if ("$!tree.get($doc.fullName)" != '') (% class="blog-categories-list subcategories" %) ((( ((( **Subcategories** ))) ((( #displayCategoriesHierarchyRecursive($tree $doc.fullName 1 'simple') ))) ))) #end (% class="clearfloats" %)((())) #getEntriesForCategory($doc.fullName $entries $totalEntries) #if ($totalEntries == 0) {{info}}No entries in this category{{/info}} #else #displayBlog($entries 'category' true true) ## displayNavigationLinks requires a blog document, to determine how should the entries be split into pages. Return this ## document, as the macro fallbacks to 'paginated' in case the right setting cannot be determined. #displayNavigationLinks($doc) #end #end #elseif ($doc.fullName == $blogCategorySheet) {{translation key="xe.blog.categories.sheetmessage"/}} #else {{warning}}{{translation key="xe.blog.categories.notcategory"/}}{{/warning}} #end {{/html}} {{/velocity}}
Recent Blog Posts
Blog Categories
News
(16)
Other
(0)
Personal
(0)
Blog Archive
当前没有文章......
快速链接
首页
新闻动态
FAQ