一般动作
登录
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) · 记录 · 信息
隐藏行号 1: {{include document="Blog.CategoriesCode"/}} 2: 3: {{velocity}} 4: {{html wiki=true}} 5: #set ($discard = $xwiki.ssx.use("Blog.ManageCategories")) 6: #set ($discard = $xwiki.jsx.use("Blog.ManageCategories")) 7: #if ($doc.getObject($blogCategoryClassname)) 8: #getEntriesForCategory($doc.fullName $discard $totalEntries) 9: = Category: #getCategoryName($doc) ($totalEntries posts) [[#toolImage('feed' '[RSS]')>>Blog.CategoryRss||queryString="xpage=plain&category=$escapetool.url($doc.fullName)" title="RSS"]] = 10: ## Keep testing the inline action for backward compatibility with older categories. 11: #if ($xcontext.action != 'edit' && $xcontext.action != 'inline') 12: {{include document="Blog.CreatePost"/}} 13: 14: #getCategoriesHierarchy($doc.space $tree) 15: #if ("$!tree.get($doc.fullName)" != '') 16: (% class="blog-categories-list subcategories" %) 17: ((( 18: ((( 19: **Subcategories** 20: ))) 21: ((( 22: #displayCategoriesHierarchyRecursive($tree $doc.fullName 1 'simple') 23: ))) 24: ))) 25: #end 26: (% class="clearfloats" %)((())) 27: 28: #getEntriesForCategory($doc.fullName $entries $totalEntries) 29: #if ($totalEntries == 0) 30: {{info}}No entries in this category{{/info}} 31: #else 32: #displayBlog($entries 'category' true true) 33: ## displayNavigationLinks requires a blog document, to determine how should the entries be split into pages. Return this 34: ## document, as the macro fallbacks to 'paginated' in case the right setting cannot be determined. 35: #displayNavigationLinks($doc) 36: #end 37: #end 38: #elseif ($doc.fullName == $blogCategorySheet) 39: {{translation key="xe.blog.categories.sheetmessage"/}} 40: #else 41: {{warning}}{{translation key="xe.blog.categories.notcategory"/}}{{/warning}} 42: #end 43: {{/html}} 44: {{/velocity}}

# Recent Blog Posts

# Blog Categories

- News (16)
- Other (0)
- Personal (0)

# Blog Archive

当前没有文章......

# 快速链接

- 首页
- 新闻动态
- FAQ

Copyright © 2013 北京博瑞开源软件有限公司
京ICP备12048974号