General Actions:
Log-in
Register
Wiki:
Main wiki
▼
:
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
Main wiki
»
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 2012/03/21 17:41
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
First blog post
Blog Categories
News
(1)
Other
(0)
Personal
(0)
Blog Archive
2009
(1)