Toggle navigation
Log-in
Wiki Index
Page Index
User Index
Blog
Blog categories
Wiki source code of
Blog categories
Last modified by
Ricardo Rodríguez Fernández
on 2015/06/16 14:34
Hide line numbers
1: {{include reference="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: <div class="blog-categories-list"> 9: #getCategoriesHierarchy($doc.space $tree) 10: #displayCategoriesHierarchyRecursive($tree $doc.fullName 1 'editable') 11: #if($xwiki.hasAccessLevel('edit', $xcontext.user, $doc.fullName)) 12: * (% class="blog-add-category-label" %)[[$services.localization.render('xe.blog.categories.addcategory')>>Blog.ManageCategories||queryString="xaction=showAddCategory&parentCategory=${escapetool.url(${doc.fullName})}"]](%%) 13: ## 14: #if("$!{request.xaction}" == 'showAddCategory' && "$!{request.parentCategory}" == ${doc.fullName}) #addCategoryForm() #end 15: ## 16: #end 17: 18: </div> 19: <div class="clearfloats"></div> 20: {{/html}} 21: {{/velocity}}