Wiki source code of $doc.getObject('Blog.CategoryClass').get('name')
Last modified by Ludovic Dubost on 2019/06/17 20:28
Show last authors
author | version | line-number | content |
---|---|---|---|
1 | {{include reference="Blog.CategoriesCode"/}} | ||
2 | |||
3 | {{velocity}} | ||
4 | #set ($discard = $xwiki.ssx.use("Blog.ManageCategories")) | ||
5 | #set ($discard = $xwiki.jsx.use("Blog.ManageCategories")) | ||
6 | #set ($obj = $doc.getObject($blogCategoryClassname)) | ||
7 | #if ($obj) | ||
8 | {{html wiki=true}} | ||
9 | #displayCategoryPosts($doc $obj) | ||
10 | {{/html}} | ||
11 | #elseif ($doc.fullName == $blogCategorySheet) | ||
12 | {{translation key="blog.categories.sheetmessage"/}} | ||
13 | #else | ||
14 | {{warning}}{{translation key="blog.categories.notcategory"/}}{{/warning}} | ||
15 | #end | ||
16 | {{/velocity}} |