Von Version < 14.19 >
bearbeitet von awa
am 17.06.2019, 08:39
Auf Version < 15.2 >
bearbeitet von gru
am 28.11.2019, 17:21
< >
Änderungskommentar: Es gibt keinen Kommentar für diese Version

Zusammenfassung

Details

Seiteneigenschaften
Dokument-Autor
... ... @@ -1,1 +1,1 @@
1 -XWiki.awa
1 +XWiki.gru
Inhalt
... ... @@ -1,6 +1,74 @@
1 1  {{include reference="Help.Code.VelocityMacros"/}}
2 2  
3 3  {{velocity output="false"}}
4 +#macro (MainMenuCard $data)
5 + #set ($documentationURL = $NULL)
6 + #if ($data.documentation)
7 + #set ($externalDocumentation = $data.documentation.contains('://'))
8 + #if ($externalDocumentation)
9 + #set ($documentationURL = $data.documentation)
10 + #else
11 + #set ($documentationURL = $xwiki.getURL($data.documentation))
12 + #end
13 + #end
14 + #set ($examplesURL = $NULL)
15 + #if ($data.examples)
16 + #if ($data.examples.startsWith('/'))
17 + ## Relative internal URL
18 + #set ($examplesURL = $data.examples)
19 + #else
20 + ## Page reference
21 + #set ($examplesURL = $xwiki.getURL($data.examples))
22 + #end
23 + #set ($url = $examplesURL)
24 + #else
25 + #set ($url = $documentationURL)
26 + #end
27 + <div class="well">
28 + #if ($data.icon)
29 + <span class="icon $data.icon" style="color:#504e4c"></span>
30 + #end
31 + #if ($data.iconfc)
32 + ##{{ficon name="$data.iconfc" size="1em"/}} title="$title"
33 + <span class="ico-fc-$data.iconfc" style="font-size:3em"></span>
34 + #end
35 + <h6>
36 + <a href="$!url">
37 + $escapetool.xml($data.title)
38 + </a>
39 + </h6>
40 + #if ($data.description)
41 + <p class="noitems" style="height:4em">
42 + $data.description
43 + </p>
44 + #end
45 + #if (($data.examples && $data.documentation) || !$data.thumbnail)
46 + <ul class="noitems">
47 + #if ($data.examples)
48 + <li>
49 + <a href="$examplesURL">$services.localization.render('help.example.label')</a>
50 + </li>
51 + #end
52 + #if ($data.documentation)
53 + <li>
54 + <a href="$documentationURL"#if ($externalDocumentation) class="wikiexternallink"#end>
55 + ##ervices.localization.render('help.more.label')
56 + Mehr erfahren
57 + </a>
58 + </li>
59 + #end
60 + </ul>
61 + #end
62 + #if ($data.thumbnail)
63 + <a href="$!url">
64 + #set ($attachmentReference = $services.model.resolveAttachment($data.thumbnail))
65 + <img src="$xwiki.getURL($attachmentReference)" class="thumbnail"
66 + alt="$escapetool.xml($attachmentReference.name)" />
67 + </a>
68 + #end
69 + </div>
70 +#end
71 +
4 4  #macro (display4Cards $cards)
5 5   <div class="row">
6 6   #foreach ($card in $cards)
... ... @@ -15,34 +15,36 @@
15 15   <div class="clearfix visible-lg-block"></div>
16 16   #end
17 17   <div class="col-xs-12 col-sm-6 col-md-4 col-lg-3 card-main">
18 - #helpExampleCard($card)
86 + #MainMenuCard($card)
87 + ##helpExampleCard($card)
19 19   </div>
20 20   #end
21 21   </div>
22 22  #end
23 23  
93 +##'icon': 'fa fa-support',
94 +##square-edit-outline
24 24  #set ($howToCards = [{
25 - 'icon': 'fa fa-support',
96 + 'iconfc': 'square-edit-outline',
26 26   'title': 'Formulardesigner',
27 27   'description': 'Arbeiten mit dem Formulardesigner',
28 28   'documentation': "Formcycle.FormDesigner"
29 29  }, {
30 - 'icon': 'fa fa-play-circle',
101 + 'iconfc': 'wrench',
31 31   'title': 'Verwaltung',
32 32   'description': 'Benutzerverwaltung, LDAP, Datenbanken, Dateien, Templates und vieles mehr',
33 33   'documentation': 'Formcycle.UserInterface'
34 34  }, {
35 - 'icon': 'fa fa-play-circle',
106 + 'iconfc': 'inbox',
36 36   'title': 'Posteingang',
37 37   'description': 'Formulardaten organisieren',
38 38   'documentation': 'Formcycle.Inbox'
39 39  }, {
40 - 'icon': 'fa fa-play-circle',
111 + 'iconfc': 'workflow-fill',
41 41   'title': 'Workflow',
42 42   'description': 'Formulardaten verarbeiten',
43 43   'documentation': 'Formcycle.UserInterface.MyForms.WorkflowProcessing'
44 44  }])
45 -
46 46  {{/velocity}}
47 47  
48 48  {{velocity}}
XWiki.XWikiRights[3]
Erlauben/Verbieten
... ... @@ -1,0 +1,1 @@
1 +Zulassen
Ebenen
... ... @@ -1,0 +1,1 @@
1 +view
Benutzer
... ... @@ -1,0 +1,1 @@
1 +XWiki.XWikiGuest
Copyright 2000-2024