Wiki source code of $doc.getObject('Blog.CategoryClass').get('name')
Last modified by Vincent Massol on 2023/05/16
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 | #if ($tdoc.content.trim() != '') | ||
9 | {{html}}$tdoc.getRenderedContent($tdoc.content, $tdoc.syntax.toIdString()).replace('{{', '{{'){{/html}} | ||
10 | |||
11 | #end | ||
12 | {{html wiki=true}} | ||
13 | #displayCategoryPosts($doc $obj) | ||
14 | {{/html}} | ||
15 | #elseif ($doc.fullName == $blogCategorySheet) | ||
16 | {{translation key="blog.categories.sheetmessage"/}} | ||
17 | #else | ||
18 | {{warning}}{{translation key="blog.categories.notcategory"/}}{{/warning}} | ||
19 | #end | ||
20 | {{/velocity}} |