Wiki broncode van ASolutionsDocument Sheet
Version 7.1 by Sven Borman on 19-05-2019
Show last authors
author | version | line-number | content |
---|---|---|---|
1 | {{velocity}} | ||
2 | #set ($editorgroup = $xwiki.getUser($xcontext.user).isUserInGroup('xwiki:XWiki.Editor')) | ||
3 | #if ($editorgroup) | ||
4 | #set ($showhistory = true) | ||
5 | #end | ||
6 | |||
7 | {{box cssClass="floatinginfobox" title="**Inhoudsopgave**" }} | ||
8 | {{toc/}} | ||
9 | {{/box}} | ||
10 | |||
11 | #if ($doc.fullName != 'XWiki.ASolutionsDocumentSheet') | ||
12 | #set($revisionClass = $doc.getObject("XWiki.ASolutionsDocumentClass")) | ||
13 | #if($revisionClass) | ||
14 | #set ($rev = $doc.getValue("revision")) | ||
15 | #if ("$!rev" != '') | ||
16 | #set ($revDoc = $xwiki.getDocument($doc, $rev)) | ||
17 | #if ($revDoc) | ||
18 | $revDoc.content | ||
19 | #else | ||
20 | {{error}}Invalid revision [$rev] specified, showing latest content{{/error}} | ||
21 | |||
22 | $doc.content | ||
23 | #end | ||
24 | #else | ||
25 | $doc.content | ||
26 | #end | ||
27 | #else | ||
28 | $doc.content | ||
29 | #end | ||
30 | #end | ||
31 | {{/velocity}} |