Changes for page Contribute

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

From version 10.1
edited by Espen Solbu
on 2026/05/25 19:29
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
... ... @@ -70,7 +70,10 @@
70 70  
71 71  To insert tables, use the WIKI editor (not WYSIWYG), The example below contains a preset filter to "Walkthrough=No"
72 72  
73 -{{{{{liveData
73 +Or Use the Macro "Mud Live Table"
74 +
75 +{{code language="velocity"}}
76 +{{liveData
74 74   id="contribute-unsolved-quests"
75 75   source="liveTable"
76 76   sourceParameters="className=MUD.Code.QuestClass&translationPrefix=mud.quests.&walkthrough=No"
... ... @@ -90,8 +90,41 @@
90 90   ]
91 91   }
92 92  }
93 -{{/liveData}}}}}
96 +{{/liveData}}
97 +{{/code}}
94 94  
99 +Here you can also clamp the table to only take pages from certain locations in the hierarchy by using the "location" sourceParameter
95 95  
101 +{{code}}
102 +sourceParameters="className=MUD.Code.ScrollClass&translationPrefix=mud.scrolls.&location=MUD.Items.Scrolls.Arcane Scrolls"
103 +{{/code}}
96 96  
97 -
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 +