... |
... |
@@ -1,90 +1,20 @@ |
1 |
1 |
{{velocity}} |
2 |
|
-#set ($object = $doc.getObject('Visual Archive.Code.Visual ArchiveClass')) |
3 |
|
-#if (!$object) |
4 |
|
- #set ($messageKey = 'visual archive.sheet.description') |
5 |
|
- #set ($messageType = 'info') |
6 |
|
- #if ($doc.documentReference.name != 'Visual ArchiveSheet') |
7 |
|
- #set ($messageKey = 'visual archive.sheet.noObject') |
8 |
|
- #set ($messageType = 'warning') |
9 |
|
- #end |
10 |
|
- {{$messageType}} |
11 |
|
- $services.localization.render($messageKey) |
12 |
|
- {{/$messageType}} |
13 |
|
- #stop |
|
2 |
+#set($docObj = $doc.getObject('VisualArchive.VisualArchiveClass')) |
|
3 |
+#set($img = $doc.getAttachmentURL($docObj.getStringValue('Image'))) |
|
4 |
+ |
|
5 |
+(% style="margin-bottom:20px; width:100%" %) |
|
6 |
+|=| |
|
7 |
+|(( |
|
8 |
+=== [[${docObj.getStringValue('Headline')}>>${docObj.getStringValue('External Link')}]] === |
|
9 |
+ |
|
10 |
+[[image:${img}||style="border:1px solid #ccc;width:200px;margin:10px 0;"]] |
|
11 |
+ |
|
12 |
+${docObj.getStringValue('Description')} |
|
13 |
+ |
|
14 |
+*__Category:__* **${docObj.getStringValue('Category')}** |
|
15 |
+#if($docObj.getListValue('Tags').size() > 0) |
|
16 |
+*__Tags:__* $docObj.getListValue('Tags').join(', ') |
14 |
14 |
#end |
15 |
|
-#set ($discard = $xwiki.jsfx.use('uicomponents/edit/editableProperty.js', { |
16 |
|
- 'forceSkinAction': true, |
17 |
|
- 'language': $xcontext.locale |
18 |
|
-})) |
19 |
|
-#set ($discard = $doc.use($object)) |
20 |
|
-#set ($editing = $xcontext.action == 'edit') |
21 |
|
-{{html wiki="true" clean="false"}} |
22 |
|
-<div class="xform"> |
23 |
|
- <dl> |
24 |
|
- <dt #if (!$editing && $hasEdit) |
25 |
|
- class="editableProperty" |
26 |
|
- data-property="$escapetool.xml($services.model.serialize($object.getPropertyReference('shortText1')))" |
27 |
|
- data-property-type="object"#end> |
28 |
|
- <label#if ($editing) for="Visual Archive.Code.Visual ArchiveClass_0_shortText1"#end> |
29 |
|
- $escapetool.xml($doc.displayPrettyName('shortText1', false, false)) |
30 |
|
- </label> |
31 |
|
- </dt> |
32 |
|
- <dd>$doc.display('shortText1')</dd> |
33 |
|
- <dt #if (!$editing && $hasEdit) |
34 |
|
- class="editableProperty" |
35 |
|
- data-property="$escapetool.xml($services.model.serialize($object.getPropertyReference('content1')))" |
36 |
|
- data-property-type="object"#end> |
37 |
|
- <label#if ($editing) for="Visual Archive.Code.Visual ArchiveClass_0_content1"#end> |
38 |
|
- $escapetool.xml($doc.displayPrettyName('content1', false, false)) |
39 |
|
- </label> |
40 |
|
- <span class="xHint"> |
41 |
|
- $escapetool.xml($services.localization.render('Image')) |
42 |
|
- </span> |
43 |
|
- </dt> |
44 |
|
- <dd>$doc.display('content1')</dd> |
45 |
|
- <dt #if (!$editing && $hasEdit) |
46 |
|
- class="editableProperty" |
47 |
|
- data-property="$escapetool.xml($services.model.serialize($object.getPropertyReference('longText1')))" |
48 |
|
- data-property-type="object"#end> |
49 |
|
- <label#if ($editing) for="Visual Archive.Code.Visual ArchiveClass_0_longText1"#end> |
50 |
|
- $escapetool.xml($doc.displayPrettyName('longText1', false, false)) |
51 |
|
- </label> |
52 |
|
- </dt> |
53 |
|
- <dd>$doc.display('longText1')</dd> |
54 |
|
- <dt #if (!$editing && $hasEdit) |
55 |
|
- class="editableProperty" |
56 |
|
- data-property="$escapetool.xml($services.model.serialize($object.getPropertyReference('shortText2')))" |
57 |
|
- data-property-type="object"#end> |
58 |
|
- <label#if ($editing) for="Visual Archive.Code.Visual ArchiveClass_0_shortText2"#end> |
59 |
|
- $escapetool.xml($doc.displayPrettyName('shortText2', false, false)) |
60 |
|
- </label> |
61 |
|
- </dt> |
62 |
|
- <dd>$doc.display('shortText2')</dd> |
63 |
|
- <dt #if (!$editing && $hasEdit) |
64 |
|
- class="editableProperty" |
65 |
|
- data-property="$escapetool.xml($services.model.serialize($object.getPropertyReference('staticList1')))" |
66 |
|
- data-property-type="object"#end> |
67 |
|
- <label#if ($editing) for="Visual Archive.Code.Visual ArchiveClass_0_staticList1"#end> |
68 |
|
- $escapetool.xml($doc.displayPrettyName('staticList1', false, false)) |
69 |
|
- </label> |
70 |
|
- <span class="xHint"> |
71 |
|
- $escapetool.xml($services.localization.render('Category')) |
72 |
|
- </span> |
73 |
|
- </dt> |
74 |
|
- <dd>$doc.display('staticList1')</dd> |
75 |
|
- <dt #if (!$editing && $hasEdit) |
76 |
|
- class="editableProperty" |
77 |
|
- data-property="$escapetool.xml($services.model.serialize($object.getPropertyReference('staticList2')))" |
78 |
|
- data-property-type="object"#end> |
79 |
|
- <label#if ($editing) for="Visual Archive.Code.Visual ArchiveClass_0_staticList2"#end> |
80 |
|
- $escapetool.xml($doc.displayPrettyName('staticList2', false, false)) |
81 |
|
- </label> |
82 |
|
- <span class="xHint"> |
83 |
|
- $escapetool.xml($services.localization.render('Tags')) |
84 |
|
- </span> |
85 |
|
- </dt> |
86 |
|
- <dd>$doc.display('staticList2')</dd> |
87 |
|
- </dl> |
88 |
|
-</div> |
89 |
|
-{{/html}} |
|
18 |
+))| |
90 |
90 |
{{/velocity}} |
|
20 |
+ |