Wiki source code of Nice Display
Version 45.20 by Benjamin Fischer on 2025/03/26 11:48
Show last authors
author | version | line-number | content |
---|---|---|---|
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 | "coopDetails": {"type": "hidden"}, | ||
14 | "coop": {}, | ||
15 | "tags": {"sortable": false, "filterable": false, "html": true, "headerClass": "tagsCol", "aux": $ntrg_tagCols}, | ||
16 | "doc.date": {"filterable": false, "displayName": "Last Updated"}, | ||
17 | '_actions': {"actions":["view","edit"]} | ||
18 | }) | ||
19 | #set ($options = { | ||
20 | 'className': 'Research Groups.Code.Research GroupsClass', | ||
21 | 'translationPrefix': 'research groups.livetable.', | ||
22 | 'extraParams': "&location=${escapetool.url($doc.getSpace())}", | ||
23 | 'tagCloud': true, | ||
24 | 'rowCount': 25, | ||
25 | 'maxPages': 10, | ||
26 | 'selectedColumn': 'doc.date', | ||
27 | 'defaultOrder': 'desc' | ||
28 | }) | ||
29 | #set ($columns = ['affiliation', 'URL', "content", "coop", "coopDetails", "doc.date", '_actions']) | ||
30 | #foreach ($ntrg_tagCol in $ntrg_tagCols) | ||
31 | #set ($discard = $columns.add(3, "tags")) | ||
32 | #end | ||
33 | #livetable("research_groups" $columns $columnsProperties $options) | ||
34 | {{/velocity}} | ||
35 | |||
36 | (% id="howto" %) | ||
37 | == How-To Add/Update Entries == | ||
38 | |||
39 | You need to be logged in to perform any modifications. | ||
40 | |||
41 | === Add entry === | ||
42 | |||
43 | 1. click {{html}}<button class="btn"><i class="fa fa-plus"/>Create</button>{{/html}} (top right) | ||
44 | 1. fill in the Title in the top left (must be unique) | ||
45 | 1. click {{html}}<button class="btn btn-primary">Create</button>{{/html}} (bottom left) | ||
46 | 1. fill out the form | ||
47 | 1. click {{html}}<button class="btn btn-primary">Save & View</button>{{/html}} (bottom left) | ||
48 | 1. add tags (bottom left): click on the [+] behind: "Tags:" | ||
49 | |||
50 | === Modfiy entry === | ||
51 | |||
52 | 1. click on {{icon name="pencil"/}} Edit | ||
53 | 1. update the form | ||
54 | 1. click {{html}}<button class="btn btn-primary">Save & View</button>{{/html}} (bottom left) | ||
55 | 1. update the Tags (bottom left) |