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
Show line numbers
{{include document="Blog.CategoriesCode"/}} {{velocity filter="none"}} {{html clean="false" wiki="true"}} $xwiki.ssx.use("Blog.ManageCategories")## $xwiki.jsx.use("Blog.ManageCategories")## ## ## ## #if($doc.getObject($blogCategoryClassname)) #getEntriesForCategory($doc.fullName $discard $totalEntries) <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> ## 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})}" != '') <div class="blog-categories-list subcategories"> <div> **Subcategories** </div> <div> #displayCategoriesHierarchyRecursive($tree $doc.fullName 1 'simple') </div> </div> #end <div class="clearfloats"></div> #getEntriesForCategory($doc.fullName $entries $totalEntries) #if($totalEntries == 0) #info('No entries in this category') #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) = $msg.get('xe.blog.categories.sheet') = $msg.get('xe.blog.categories.sheetmessage') #else #warning($msg.get('xe.blog.categories.notcategory')) #end {{/html}} {{/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)