Toggle navigation
Log-in
myITGuide
Page Index
User Index
Application Index
Global
Wiki Index
Home
Blog
Links
Database
SQL Server
Cassandra
BigData
PostgreSQL
Redis
MariaDB
MongoDB
Tools
T-SQL
Powershell
Python
Scala
R
Jupyter
Java
Solution
Streaming
Spark
Storm
Search
Solr
ElasticSearch
Kafka
Puppet
Kibana
Docker
Kubernetes
OS
Windows
Linux
About
About Us
Email Us
Blog
CategorySheet
Wiki source code of
CategorySheet
Last modified by superadmin on 2016/12/20 10:05
Show line numbers
{{include reference="Blog.CategoriesCode"/}} {{velocity}} #set ($discard = $xwiki.ssx.use("Blog.ManageCategories")) #set ($discard = $xwiki.jsx.use("Blog.ManageCategories")) #set ($obj = $doc.getObject($blogCategoryClassname)) #if ($obj) #getEntriesForCategory($doc.fullName $discard $totalEntries) = Category: $services.rendering.escape($obj.getValue('name'), $doc.syntax) ($totalEntries posts) [[#toolImage('feed')>>Blog.CategoryRss||queryString="xpage=plain&category=$escapetool.url($doc.fullName)" title="RSS"]] = {{html wiki=true}} ## Keep testing the inline action for backward compatibility with older categories. #if ($xcontext.action != 'edit' && $xcontext.action != 'inline') {{include reference="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}}{{translation key="xe.blog.categories.noentries"/}}{{/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 {{/html}} #elseif ($doc.fullName == $blogCategorySheet) {{translation key="xe.blog.categories.sheetmessage"/}} #else {{warning}}{{translation key="xe.blog.categories.notcategory"/}}{{/warning}} #end {{/velocity}}