| ... |
... |
@@ -1,14 +7,8 @@ |
| 1 |
|
-{{velocity}} |
| 2 |
|
-{{html clean="false"}} |
| 3 |
|
-<p class="xm-create-button xm-create-button-armour"><a class="btn btn-primary" href="$doc.getURL('create', 'templateprovider=MUD.Code.Templates.ArmourTemplateProvider')"><span class="fa fa-plus"></span> New Armour</a></p> |
| 4 |
|
-{{/html}} |
| 5 |
|
-{{/velocity}} |
| 6 |
|
- |
| 7 |
7 |
{{liveData |
| 8 |
8 |
id="mud-armour-back" |
| 9 |
9 |
source="liveTable" |
| 10 |
|
- sourceParameters="className=MUD.Code.ArmourClass&translationPrefix=platform.index.&location=MUD.Items.Armour.Back" |
| 11 |
|
- properties="doc.title,judge,slot,ac,material,type_,quality,source" |
|
4 |
+ sourceParameters="className=MUD.Code.ArmourClass&translationPrefix=mud.armour." |
|
5 |
+ properties="doc.title,judge,location,ac,material,type_,quality,source" |
| 12 |
12 |
sort="doc.title" |
| 13 |
13 |
}} |
| 14 |
14 |
{ |
| ... |
... |
@@ -24,7 +24,7 @@ |
| 24 |
24 |
"editable": false |
| 25 |
25 |
}, |
| 26 |
26 |
{ |
| 27 |
|
- "id": "slot", |
|
21 |
+ "id": "location", |
| 28 |
28 |
"editable": false |
| 29 |
29 |
}, |
| 30 |
30 |
{ |
| ... |
... |
@@ -48,11 +48,24 @@ |
| 48 |
48 |
"editable": false |
| 49 |
49 |
} |
| 50 |
50 |
] |
|
45 |
+ }, |
|
46 |
+ "query": { |
|
47 |
+ "filters": [ |
|
48 |
+ { |
|
49 |
+ "property": "doc.location", |
|
50 |
+ "constraints": [ |
|
51 |
+ { |
|
52 |
+ "operator": "startsWith", |
|
53 |
+ "value": "MUD.Items.Armour.Back" |
|
54 |
+ } |
|
55 |
+ ] |
|
56 |
+ } |
|
57 |
+ ] |
| 51 |
51 |
} |
| 52 |
52 |
} |
| 53 |
53 |
{{/liveData}} |
| 54 |
|
- |
| 55 |
55 |
---- |
| 56 |
56 |
|
|
63 |
+{{create-from-template templateName="17858566" templateId="17858566" buttonLabel="Create new Armour"/}} |
| 57 |
57 |
|
| 58 |
|
- |
|
65 |
+{{detailssummary cql="label = ~"equipment~" and space = currentSpace() and ancestor = currentContent()"/}} |