Changes for page Program Planning
Last modified by Benjamin Fischer on 2025/02/20 13:24
From version 1.2
edited by Benjamin Fischer
on 2025/02/20 12:41
on 2025/02/20 12:41
Change comment:
There is no comment for this version
To version 2.1
edited by Benjamin Fischer
on 2025/02/20 13:24
on 2025/02/20 13:24
Change comment:
There is no comment for this version
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -1,302 +1,1 @@ 1 -(% aria-label="macro:documents widget" contenteditable="false" role="region" tabindex="-1" %) 2 -((( 3 -(% class="macro" data-macro="startmacro:documents|-|count=~"50~" actions=~"false~" parent=~"MoccaCalendar.WebHome~" columns=~"doc.location,doc.date~" location=~"Program Planning~"" data-widget="xwiki-macro" data-xwiki-dom-updated="true" %) 4 -((( 5 -(% class="macro-placeholder hidden" %) 6 -((( 7 -macro:documents 8 -))) 9 - 10 -(% class="macro" data-macro="startmacro:velocity|-||-|#if (~"$!xcontext.macro.params.columns~" != ~"~") 11 - #set ($properties = []) 12 - #foreach ($colname in $xcontext.macro.params.columns.split(',')) 13 - #set ($discard = $properties.add($colname.trim())) 14 - #end 15 -#else 16 - #set ($properties = ['doc.title', 'doc.location', 'doc.date', 'doc.author']) 17 -#end 18 -#set ($sourceParameters = \{ 19 - 'translationPrefix' : 'platform.index.' 20 -}) 21 -#if (~"$!xcontext.macro.params.space~" != ~"~") 22 - #set ($discard = $sourceParameters.put('space', $xcontext.macro.params.space)) 23 -#end 24 -#if (~"$!xcontext.macro.params.location~" != ~"~") 25 - #set ($discard = $sourceParameters.put('location', $xcontext.macro.params.location)) 26 -#end 27 -#if (~"$!xcontext.macro.params.parent~" != ~"~") 28 - #set ($discard = $sourceParameters.put('parent', $xcontext.macro.params.parent)) 29 -#end 30 -#set ($propertyDescriptors = []) 31 -#if (~"$!services.like~" != ~"~") 32 - ## We can't make it sortable or filterable right now since it's not stored in DB. 33 - #set ($discard = $propertyDescriptors.add(\{ 'id': '_likes', 'sortable': false, 'filterable': false })) 34 - #set ($discard = $properties.add('_likes')) 35 -#end 36 -#if(!$isGuest && $xcontext.macro.params.actions == ~"true~") 37 - #set ($discard = $propertyDescriptors.add(\{ 'id': '_actions', 'displayer': \{ 'id': 'actions', 'actions': ['copy', 'rename', 'rights', 'delete'] }})) 38 - #set ($discard = $properties.add('_actions')) 39 -#end 40 -#set ($liveDataConfig = \{'meta': \{'propertyDescriptors': $propertyDescriptors}}) 41 -#if (~"$!xcontext.macro.params.id~" != ~"~") 42 - #set ($livedataId = $xcontext.macro.params.id) 43 -#else 44 - ## TODO: Improve this since we could have several livetables on the same page with same ids 45 - #set ($livedataId = ~"documents-$mathtool.random(1, 1000)~") 46 -#end 47 - 48 -#set ($livedataId = $services.rendering.escape($livedataId, 'xwiki/2.1')) 49 -#set ($description = '') 50 -#if (~"$!xcontext.macro.params.description~" != '') 51 - #set ($description = $services.rendering.escape($xcontext.macro.params.description, 'xwiki/2.1')) 52 -#end 53 -#set ($limit = '') 54 -#if (~"$!xcontext.macro.params.count~" != '') 55 - #set ($limit = $services.rendering.escape($xcontext.macro.params.count, 'xwiki/2.1')) 56 -#end 57 -#set ($propertiesStr = $services.rendering.escape($stringtool.join($properties, ','), 'xwiki/2.1')) 58 -\{\{liveData 59 - id=~"$livedataId~" 60 - properties=~"$propertiesStr~" 61 - source=~"liveTable~" 62 - sourceParameters=~"$escapetool.url($sourceParameters)~" 63 - #if ($description != '')description=~"$description~"#end 64 - #if ($properties.contains('doc.location'))sort=~"doc.location~"#end 65 - #if ($limit != '')limit=~"$limit~"#end 66 -}}$jsontool.serialize($liveDataConfig)\{\{/liveData}}" %) 67 -((( 68 -(% class="macro-placeholder hidden" %) 69 -((( 70 -macro:velocity 71 -))) 72 - 73 -(% class="macro" data-macro="startmacro:liveData|-|id=~"documents-326~" properties=~"doc.location,doc.date,_likes~" source=~"liveTable~" sourceParameters=~"translationPrefix=platform.index.&location=Program%20Planning&parent=MoccaCalendar.WebHome~" sort=~"doc.location~" limit=~"50~"|-|\{~"meta~":\{~"propertyDescriptors~":[\{~"id~":~"_likes~",~"sortable~":false,~"filterable~":false}]}}" %) 74 -((( 75 -(% class="macro-placeholder hidden" %) 76 -((( 77 -macro:liveData 78 -))) 79 - 80 -(% class="liveData" data-config="{}" data-config-content-trusted="true" id="documents-326" %) 81 -((( 82 - 83 - 84 -(% class="xwiki-livedata" %) 85 -((( 86 -(% class="livedata-advanced-panels" %) 87 -((( 88 -(% class="livedata-advanced-panel panel panel-default livedata-advanced-panel-properties" style="display: none;" %) 89 -((( 90 -(% class="panel-heading" %) 91 -((( 92 -(% class="title" %)Properties 93 - 94 -(% class="actions" %) 95 -((( 96 - 97 -))) 98 -))) 99 - 100 -(% class="panel-body" %) 101 -((( 102 -(% class="draggable-container" value="doc.location,doc.date,_likes" %) 103 -((( 104 -(% class="draggable-item property" %) 105 -((( 106 -(% class="handle" %) 107 -((( 108 - 109 -))) 110 - 111 -(% class="visibility" %) 112 -((( 113 - 114 -))) 115 - 116 -(% class="property-name" %)Location 117 -))) 118 - 119 -(% class="draggable-item property" %) 120 -((( 121 -(% class="handle" %) 122 -((( 123 - 124 -))) 125 - 126 -(% class="visibility" %) 127 -((( 128 - 129 -))) 130 - 131 -(% class="property-name" %)Date 132 -))) 133 - 134 -(% class="draggable-item property" %) 135 -((( 136 -(% class="handle" %) 137 -((( 138 - 139 -))) 140 - 141 -(% class="visibility" %) 142 -((( 143 - 144 -))) 145 - 146 -(% class="property-name" %)Likes 147 -))) 148 -))) 149 -))) 150 -))) 151 - 152 -(% class="livedata-advanced-panel panel panel-default livedata-advanced-panel-sort" style="display: none;" %) 153 -((( 154 -(% class="panel-heading" %) 155 -((( 156 -(% class="title" %)Sort 157 - 158 -(% class="actions" %) 159 -((( 160 - 161 -))) 162 -))) 163 - 164 -(% class="panel-body" %) 165 -((( 166 -(% class="text-muted" style="display: none;" %) 167 -((( 168 -None of the displayed properties is sortable. 169 -))) 170 - 171 -(% class="draggable-container" value="[object Object]" %) 172 -((( 173 -(% class="draggable-item sort-entry" %) 174 -((( 175 -(% class="handle" %) 176 -((( 177 - 178 -))) 179 - 180 -Location(% style="margin:0px 1rem" %) - (%%)AscendingDescending 181 -))) 182 -))) 183 - 184 -Add sortDate 185 -))) 186 -))) 187 - 188 -(% class="livedata-advanced-panel panel panel-default livedata-advanced-panel-filter" style="display: none;" %) 189 -((( 190 -(% class="panel-heading" %) 191 -((( 192 -(% class="title" %)Filter 193 - 194 -(% class="actions" %) 195 -((( 196 - 197 -))) 198 -))) 199 - 200 -(% class="panel-body" %) 201 -((( 202 -(% class="text-muted" style="display: none;" %) 203 -((( 204 -None of the displayed properties is filterable. 205 -))) 206 - 207 -Add filterLocationDate 208 -))) 209 -))) 210 -))) 211 - 212 -(% class="livedata-layout" %) 213 -((( 214 -(% aria-describedby="documents-326-description" class="layout-table" %) 215 -((( 216 -(% class="livedata-topbar" %) 217 -((( 218 -(% class="livedata-topbar-left" %) 219 -((( 220 -(% aria-label="Pagination control for the documents-326 table" class="livedata-pagination" %) 221 -((( 222 -(% class="pagination-current-entries" %)Entries 0 - 0 out of 0 (% class="pagination-page-size" %)per page of 152550100(% class="pagination-indexes" %) page [[1>>path:#||class="page-nav current"]] 223 -))) 224 -))) 225 - 226 -(% class="livedata-topbar-right" %) 227 -((( 228 -(% class="livedata-dropdown-menu btn-group" %) 229 -((( 230 -(% class="dropdown-menu dropdown-menu-right" %) 231 -* (% class="dropdown-header" %)Actions 232 -** [[Refresh>>path:#||class="livedata-action-refresh"]] 233 -* (% class="dropdown-header" %)Layouts 234 -** [[Table>>path:#]] 235 -** [[Cards>>path:#]] 236 -* (% class="dropdown-header" %)Panels 237 -** [[Properties...>>path:#]] 238 -** [[Sort...>>path:#]] 239 -** [[Filter...>>path:#]] 240 -))) 241 -))) 242 -))) 243 - 244 -(% class="layout-loader visible" %) 245 -((( 246 -(% class="loader-fill" %) 247 -((( 248 - 249 -))) 250 -))) 251 - 252 -(% class="layout-table-wrapper" %) 253 -((( 254 -(% class="layout-table-root responsive-table" %) 255 -(% class="column-header-names draggable-container" tag="tr" value="doc.location,doc.date,_likes" %)|=(% class="draggable-item" %)(% class="column-name" %) 256 -((( 257 -(% class="property-name" %)Location 258 -)))|=(% class="draggable-item" %)(% class="column-name" %) 259 -((( 260 -(% class="property-name" %)Date 261 -)))|=(% class="draggable-item" %)(% class="column-name" %) 262 -((( 263 -(% class="property-name" %)Likes 264 -))) 265 -(% class="column-filters" %)|=|=(% class="livedata-filter" %) 266 -((( 267 - 268 -)))|= 269 -))) 270 - 271 -(% class="livedata-bottombar" %) 272 -((( 273 -(% class="noentries-table" %) 274 -((( 275 -(No entries) 276 -))) 277 - 278 -(% aria-label="Pagination control for the documents-326 table" class="livedata-pagination" %) 279 -((( 280 -(% class="pagination-current-entries" %)Entries 0 - 0 out of 0 (% class="pagination-page-size" %)per page of 152550100(% class="pagination-indexes" %) page [[1>>path:#||class="page-nav current"]] 281 -))) 282 -))) 283 -))) 284 -))) 285 - 286 -(% class="footnotes" %) 287 -((( 288 - 289 -))) 290 - 291 -(% style="display: none;" %) 292 -((( 293 - 294 -))) 295 -))) 296 -))) 297 -))) 298 -))) 299 -))) 300 - 301 -(% style="background:rgba(220, 220, 220, 0.5) url(~"https://wiki.erumdatahub.de/webjars/wiki%3Axwiki/xwiki-platform-ckeditor-webjar/17.0.0/plugins/widget/images/handle.png~"); left:0px; top:-15px" %)[[image:data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==||height="15" role="presentation" title="Click and drag to move" width="15"]] 302 -))) 1 +{{liveData id="qq1" properties="doc.location,doc.date" source="liveTable" sourceParameters="translationPrefix=platform.index.&location=.Program Planning" sort="doc.date:desc"/}}