Changes for page Nice Display
Last modified by Benjamin Fischer on 2025/06/04 11:55
From version 46.2
edited by Benjamin Fischer
on 2025/06/04 11:55
on 2025/06/04 11:55
Change comment:
There is no comment for this version
To version 45.29
edited by Benjamin Fischer
on 2025/03/26 13:16
on 2025/03/26 13:16
Change comment:
There is no comment for this version
Summary
-
Page properties (1 modified, 0 added, 0 removed)
-
Objects (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -4,6 +4,8 @@ 4 4 #if ( $ntrg_tagCols == $null ) 5 5 #set( $ntrg_tagCols = [["Tags", true]] ) 6 6 #end 7 +#set ($shouldMinify = !$hasProgramming ) 8 +#set ($discard = $xwiki.jsx.use('Research Groups.Nice Display.WebHome', {"minify": $shouldMinify})) 7 7 8 8 #set ($columnsProperties = { 9 9 'affiliation': {"filterable":true, "sortable":true, "html":true}, ... ... @@ -11,7 +11,6 @@ 11 11 "content": {"type": "hidden"}, 12 12 "coopDetails": {"type": "hidden"}, 13 13 "coop": {"html": true}, 14 - "Community": {"tooltip": "KAT - Astroparticle Physics<br/>KET - Elementary Particles Physics<br/>KfB - Accelerator Physics<br/>KFN - Research with neutrons<br/>KFS - Research with synchrotron radiation<br/>KFSI - Research with nuclear probes and ion beams<br/>KHuK - Hadron and nuclear physics<br/>RDS - German Observatory Council"}, 15 15 "tags": {"sortable": false, "filterable": false, "html": true, "headerClass": "tagsCol", "aux": $ntrg_tagCols}, 16 16 "doc.date": {"filterable": false, "displayName": "Last Updated"}, 17 17 '_actions': {"actions":["view","edit"]} ... ... @@ -33,5 +33,24 @@ 33 33 #livetable("research_groups" $columns $columnsProperties $options) 34 34 {{/velocity}} 35 35 36 -{{include reference="Applications.Helpers.Howto Modify Footer.WebHome"}} 37 +(% id="howto" %) 38 +== How-To Add/Update Entries == 37 37 40 +You need to be logged in to perform any modifications. 41 + 42 +=== Add entry === 43 + 44 +1. click {{html}}<button class="btn"><i class="fa fa-plus"/>Create</button>{{/html}} (top right) 45 +1. fill in the Title in the top left (must be unique) 46 +1. click {{html}}<button class="btn btn-primary">Create</button>{{/html}} (bottom left) 47 +1. fill out the form 48 +1. click {{html}}<button class="btn btn-primary">Save & View</button>{{/html}} (bottom left) 49 +1. add tags (bottom left): click on the [+] behind: "Tags:" 50 + 51 +=== Modfiy entry === 52 + 53 +1. click on {{icon name="pencil"/}} Edit 54 +1. update the form 55 +1. click {{html}}<button class="btn btn-primary">Save & View</button>{{/html}} (bottom left) 56 +1. update the Tags (bottom left) 57 +
- XWiki.JavaScriptExtension[0]
-
- Code
-
... ... @@ -11,7 +11,7 @@ 11 11 "KFSI - Research with nuclear probes and ion beams", 12 12 "KHuK - Hadron and nuclear physics", 13 13 "RDS - German Observatory Council" 14 - ].join(" <br/>"),14 + ].join("\n"), 15 15 "Cooperation": "...", 16 16 }; 17 17 let tagCols; ... ... @@ -43,10 +43,9 @@ 43 43 // column tooltips 44 44 mats.querySelectorAll(".xwiki-livetable-display-header-text").forEach( 45 45 el => { 46 - const t = el.textContent.trim(); 47 - const c = colTT[t] 46 + const c = colTT[el.textContent] 48 48 if (c) { 49 - el.title = t; 48 + el.title = el.textContent; 50 50 el.dataset.content = c; 51 51 el.dataset.toggle = "popover"; 52 52 el.dataset.placement = "top";