Changes for page Contribute

Last modified by test user on 2026/05/26 17:29

From version 5.1
edited by Espen Solbu
on 2026/05/25 19:05
Change comment: There is no comment for this version
To version 15.1
edited by test user
on 2026/05/26 17:29
Change comment: There is no comment for this version

Summary

Details

Page properties
Author
... ... @@ -1,1 +1,1 @@
1 -XWiki.eso
1 +XWiki.TestUser
Content
... ... @@ -38,43 +38,17 @@
38 38  
39 39  = Missing Walkthrough =
40 40  
41 -{{liveData id="mud-quests" source="liveTable" sourceParameters="className=MUD.Code.QuestClass&translationPrefix=mud.quests." properties="doc.title,id_,tier,suited_for,walkthrough,quest_level,quest_points,domain" sort="doc.title"}}
41 +{{liveData id="contribute-unsolved-quests" source="liveTable" sourceParameters="className=MUD.Code.QuestClass&translationPrefix=mud.quests.&walkthrough=No" properties="doc.title,id_,tier,suited_for,quest_level,quest_points,domain" sort="doc.title"}}
42 42  {
43 43   "meta": {
44 44   "propertyDescriptors": [
45 - {
46 - "id": "doc.title",
47 - "name": "Quest",
48 - "editable": false
49 - },
50 - {
51 - "id": "id_",
52 - "editable": false
53 - },
54 - {
55 - "id": "tier",
56 - "editable": false
57 - },
58 - {
59 - "id": "suited_for",
60 - "editable": false
61 - },
62 - {
63 - "id": "walkthrough",
64 - "editable": false
65 - },
66 - {
67 - "id": "quest_level",
68 - "editable": false
69 - },
70 - {
71 - "id": "quest_points",
72 - "editable": false
73 - },
74 - {
75 - "id": "domain",
76 - "editable": false
77 - }
45 + {"id": "doc.title", "name": "Quest", "editable": false},
46 + {"id": "id_", "editable": false},
47 + {"id": "tier", "editable": false},
48 + {"id": "suited_for", "editable": false},
49 + {"id": "quest_level", "editable": false},
50 + {"id": "quest_points", "editable": false},
51 + {"id": "domain", "editable": false}
78 78   ]
79 79   }
80 80  }
... ... @@ -92,5 +92,68 @@
92 92  
93 93  
94 94  
69 += Editor Tips =
95 95  
96 -
71 +To insert tables, use the WIKI editor (not WYSIWYG), The example below contains a preset filter to "Walkthrough=No"
72 +
73 +Or Use the Macro "Mud Live Table"
74 +
75 +{{code language="velocity"}}
76 +{{liveData
77 + id="contribute-unsolved-quests"
78 + source="liveTable"
79 + sourceParameters="className=MUD.Code.QuestClass&translationPrefix=mud.quests.&walkthrough=No"
80 + properties="doc.title,id_,tier,suited_for,quest_level,quest_points,domain"
81 + sort="doc.title"
82 +}}
83 +{
84 + "meta": {
85 + "propertyDescriptors": [
86 + {"id": "doc.title", "name": "Quest", "editable": false},
87 + {"id": "id_", "editable": false},
88 + {"id": "tier", "editable": false},
89 + {"id": "suited_for", "editable": false},
90 + {"id": "quest_level", "editable": false},
91 + {"id": "quest_points", "editable": false},
92 + {"id": "domain", "editable": false}
93 + ]
94 + }
95 +}
96 +{{/liveData}}
97 +{{/code}}
98 +
99 +Here you can also clamp the table to only take pages from certain locations in the hierarchy by using the "location" sourceParameter
100 +
101 +{{code}}
102 +sourceParameters="className=MUD.Code.ScrollClass&translationPrefix=mud.scrolls.&location=MUD.Items.Scrolls.Arcane Scrolls"
103 +{{/code}}
104 +
105 +Or use the **MUD Tag Table** macro to list pages by tag — useful for Confluence-label-style aggregations like equipment sets that may span multiple page types:
106 +
107 +{{code language="velocity"}}
108 +{{tagtable tag="set_twilight" title="Twilight Set"/}}
109 +{{/code}}
110 +
111 +The tagtable returns results across //every// XClass — weapons, armour, accessories — anywhere that page is tagged. Browse the current tag list at the [[XWiki tag cloud>>https://xwiki.onomato.biz/bin/view/Main/Tags]].
112 +
113 +If you'd prefer to wire the tag filter into a raw `{{liveData}}` block instead of using the wrapper macro, the pattern is: top-level `filters="tags=<value>"` on the macro, plus `className=XWiki.TagClass` + `translationPrefix=platform.index.` in `sourceParameters`, and `tags` must be in the `properties` list. Example:
114 +
115 +{{code language="velocity"}}
116 +{{liveData
117 + id="my-tag-table"
118 + source="liveTable"
119 + sourceParameters="className=XWiki.TagClass&translationPrefix=platform.index."
120 + properties="doc.title,doc.location,tags"
121 + filters="tags=set_twilight"
122 + sort="doc.title"
123 +}}
124 +{
125 + "meta": {
126 + "propertyDescriptors": [
127 + { "id": "tags", "visible": false }
128 + ]
129 + }
130 +}
131 +{{/liveData}}
132 +{{/code}}
133 +