Wiki source code of Blog categories
Version 1.1 by Ludovic Dubost on 2017/01/07 20:29
Hide last authors
author | version | line-number | content |
---|---|---|---|
![]() |
1.1 | 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.icon.renderHTML('add') | ||
13 | [[$services.localization.render('xe.blog.categories.addcategory')>>Blog.ManageCategories||queryString="xaction=showAddCategory&parentCategory=${escapetool.url(${doc.fullName})}"]](%%)(%%) | ||
14 | ## | ||
15 | #if("$!{request.xaction}" == 'showAddCategory' && "$!{request.parentCategory}" == ${doc.fullName}) #addCategoryForm() #end | ||
16 | ## | ||
17 | #end | ||
18 | |||
19 | </div> | ||
20 | <div class="clearfloats"></div> | ||
21 | {{/html}} | ||
22 | {{/velocity}} |