Wiki source code of Nice Display

Version 45.13 by Benjamin Fischer on 2025/03/26 10:49

Show last authors
1 {{locationSearch width="100%;clear:both;" className="Research Groups.Code.Research GroupsClass" description="Search, including in excerpts."/}}
2
3 {{velocity}}
4 #if ( $ntrg_tagCols == $null )
5 #set( $ntrg_tagCols = [["Tags", true]] )
6 #end
7 #set ($discard = $xwiki.jsx.use('Research Groups.Nice Display.WebHome'))
8
9 #set ($columnsProperties = {
10 'affiliation': {"filterable":true, "sortable":true, "html":true},
11 'URL': {"type": "hidden"},
12 "content": {"type": "hidden"},
13 "coop": {},
14 "tags": {"sortable": false, "filterable": false, "html": true, "headerClass": "tagsCol", "aux": $ntrg_tagCols},
15 "doc.date": {"filterable": false, "displayName": "Last Updated"},
16 '_actions': {"actions":["view","edit"]}
17 })
18 #set ($options = {
19 'className': 'Research Groups.Code.Research GroupsClass',
20 'translationPrefix': 'research groups.livetable.',
21 'extraParams': "&location=${escapetool.url($doc.getSpace())}",
22 'tagCloud': true,
23 'rowCount': 25,
24 'maxPages': 10,
25 'selectedColumn': 'doc.date',
26 'defaultOrder': 'desc'
27 })
28 #set ($columns = ['affiliation', 'URL', "content", "coop", "doc.date", '_actions'])
29 #foreach ($ntrg_tagCol in $ntrg_tagCols)
30 #set ($discard = $columns.add(3, "tags"))
31 #end
32 Cols: $columns
33 ...
34 #livetable("research_groups" $columns $columnsProperties $options)
35 {{/velocity}}
36
37 (% id="howto" %)
38 == How-To Add/Update Entries ==
39
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
58 === Demo Video - Coming Soon ===