Wiki source code of Nice Display

Last modified by Benjamin Fischer on 2025/03/26 13:19

Hide last authors
Benjamin Fischer 42.1 1 {{locationSearch width="100%;clear:both;" className="Research Groups.Code.Research GroupsClass" description="Search, including in excerpts."/}}
Benjamin Fischer 37.1 2
admin 28.1 3 {{velocity}}
Benjamin Fischer 45.10 4 #if ( $ntrg_tagCols == $null )
5 #set( $ntrg_tagCols = [["Tags", true]] )
6 #end
Benjamin Fischer 45.23 7 #set ($shouldMinify = !$hasProgramming )
8 #set ($discard = $xwiki.jsx.use('Research Groups.Nice Display.WebHome', {"minify": $shouldMinify}))
Benjamin Fischer 45.10 9
admin 28.1 10 #set ($columnsProperties = {
11 'affiliation': {"filterable":true, "sortable":true, "html":true},
12 'URL': {"type": "hidden"},
13 "content": {"type": "hidden"},
Benjamin Fischer 45.20 14 "coopDetails": {"type": "hidden"},
Benjamin Fischer 45.24 15 "coop": {"html": true},
Benjamin Fischer 45.11 16 "tags": {"sortable": false, "filterable": false, "html": true, "headerClass": "tagsCol", "aux": $ntrg_tagCols},
admin 30.1 17 "doc.date": {"filterable": false, "displayName": "Last Updated"},
admin 28.1 18 '_actions': {"actions":["view","edit"]}
19 })
20 #set ($options = {
21 'className': 'Research Groups.Code.Research GroupsClass',
22 'translationPrefix': 'research groups.livetable.',
Benjamin Fischer 45.5 23 'extraParams': "&location=${escapetool.url($doc.getSpace())}",
admin 28.1 24 'tagCloud': true,
Benjamin Fischer 32.2 25 'rowCount': 25,
admin 28.1 26 'maxPages': 10,
admin 30.1 27 'selectedColumn': 'doc.date',
Benjamin Fischer 31.1 28 'defaultOrder': 'desc'
admin 28.1 29 })
Benjamin Fischer 45.20 30 #set ($columns = ['affiliation', 'URL', "content", "coop", "coopDetails", "doc.date", '_actions'])
Benjamin Fischer 45.13 31 #foreach ($ntrg_tagCol in $ntrg_tagCols)
Benjamin Fischer 45.11 32 #set ($discard = $columns.add(3, "tags"))
33 #end
34 #livetable("research_groups" $columns $columnsProperties $options)
admin 28.1 35 {{/velocity}}
Benjamin Fischer 42.1 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)
Benjamin Fischer 44.1 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:"
Benjamin Fischer 42.1 50
51 === Modfiy entry ===
52
53 1. click on {{icon name="pencil"/}} Edit
Benjamin Fischer 44.1 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)
Benjamin Fischer 42.1 57