General Actions:
Log-in
Register
Wiki:
games
▼
:
Document Index
»
Space:
Blog
▼
:
Document Index
»
Page:
CategorySheet
Search
default
Page Actions:
Export
▼
:
Export as PDF
Export as RTF
Export as HTML
More actions
▼
:
Print preview
View Source
Wiki Home
»
The Wiki Blog
»
Blog Category class
»
Sheet for displaying blog categories
Wiki source code of
Sheet for displaying blog categories
Last modified by
Administrator
on 2011/11/06 20:09
Content
·
Comments
(0)
·
Annotations
(0)
·
Attachments
(0)
·
History
·
Information
Hide line numbers
1: {{include document="Blog.CategoriesCode"/}} 2: 3: {{velocity filter="none"}} 4: {{html clean="false" wiki="true"}} 5: $xwiki.ssx.use("Blog.ManageCategories")## 6: $xwiki.jsx.use("Blog.ManageCategories")## 7: ## 8: ## 9: ## 10: #if($doc.getObject($blogCategoryClassname)) 11: #getEntriesForCategory($doc.fullName $discard $totalEntries) 12: 13: <h1>Category: #getCategoryName($doc) ($totalEntries posts) <a href="$xwiki.getURL('Blog.CategoryRss', 'view', "xpage=plain&category=${escapetool.url($doc.fullName)}")" title="RSS">#toolImage('feed' '[RSS]')</a></h1> 14: ## Keep testing the inline action for backward compatibility with older categories. 15: #if($xcontext.action != 'edit' && $xcontext.action != 'inline') 16: {{include document="Blog.CreatePost"/}} 17: #getCategoriesHierarchy($doc.space $tree) 18: #if("$!{tree.get(${doc.fullName})}" != '') 19: <div class="blog-categories-list subcategories"> 20: <div> 21: **Subcategories** 22: </div> 23: <div> 24: #displayCategoriesHierarchyRecursive($tree $doc.fullName 1 'simple') 25: </div> 26: </div> 27: #end 28: <div class="clearfloats"></div> 29: 30: #getEntriesForCategory($doc.fullName $entries $totalEntries) 31: #if($totalEntries == 0) 32: #info('No entries in this category') 33: #else 34: #displayBlog($entries 'category' true true) 35: ## displayNavigationLinks requires a blog document, to determine how should the entries be split into pages. Return this 36: ## document, as the macro fallbacks to 'paginated' in case the right setting cannot be determined. 37: #displayNavigationLinks($doc) 38: #end 39: #end 40: #elseif($doc.fullName == $blogCategorySheet) 41: = $msg.get('xe.blog.categories.sheet') = 42: $msg.get('xe.blog.categories.sheetmessage') 43: #else 44: #warning($msg.get('xe.blog.categories.notcategory')) 45: #end 46: {{/html}} 47: {{/velocity}}
Recent Blog Posts
Wedding Crashers
A New Slipknot
Getting to know you
A Falling Star
The Grand Reveal
Plans for First Flight
Akuma Crushed Beneath the Heel
Caelan Defeats the Snake Form
How Not to Win Friends and Influence People
Ancient Lunars and Frozen Fair Folk
Blog Categories
Games
(60)
Diaspora
(3)
Imperium
(7)
Selene's Flurry
(20)
News
(1)
Other
(0)
Personal
(0)
Blog Archive
2009
(1)
2011
(1)
2012
(1)