Wiki source code of All categories
Last modified by Jan Rhebergen on 2021/02/27 22:16
Hide last authors
| author | version | line-number | content |
|---|---|---|---|
| |
1.1 | 1 | {{include reference="Blog.CategoriesCode"/}} |
| 2 | |||
| 3 | {{velocity filter="none"}} | ||
| 4 | #if ($doc.fullName == $blogCategoriesSheet) | ||
| 5 | {{translation key="blog.categories.webhome_sheetmessage"/}} | ||
| 6 | #else | ||
| 7 | {{html clean="false" wiki="true"}} | ||
| 8 | #if ("$!request.action" == 'manage') | ||
| 9 | $xwiki.ssx.use('Blog.ManageCategories') | ||
| 10 | $xwiki.jsx.use('Blog.ManageCategories', {'minify':false}) | ||
| 11 | |||
| 12 | #set ($categoriesLocation = $doc.space) | ||
| 13 | #set ($defaultCategoryParent = $doc.fullName) | ||
| 14 | #displayCategoryManagementTree($categoriesLocation 'editable') | ||
| 15 | #else | ||
| 16 | #set ($discard = $xwiki.ssx.use("Blog.ManageCategories")) | ||
| 17 | #set ($discard = $xwiki.jsx.use("Blog.ManageCategories")) | ||
| 18 | #displayCategoryPosts($doc $NULL) | ||
| 19 | #end | ||
| 20 | {{/html}} | ||
| 21 | #end | ||
| 22 | {{/velocity}} | ||
| 23 |