General Actions:
Log-in
Register
Wiki:
xwiki
▼
:
Document Index
»
Space:
Blog
▼
:
Document Index
»
Page:
CategorySheet
Search
default
Page Actions:
Export
▼
:
Export as PDF
Export as HTML
More actions
▼
:
Print preview
View Source
Main.WebHome
»
The Wiki Blog
»
Blog Category class
»
Wiki source code of
CategorySheet
Show line numbers
{{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
First blog post
Blog Categories
News
(1)
Other
(0)
Personal
(0)
Blog Archive
2009
(1)
Klasyfikacja