From empty
Uz versiju 1.1
Mainījis superadmin
2017/11/28 14:52
Izmaiņu komentāri: Install extension [org.xwiki.platform:xwiki-platform-application-ui/9.9]

Apkopojums

Detaļas

Lapas īpašības
Virsraksts
... ... @@ -1,0 +1,1 @@
1 +Macros
Vecāks
... ... @@ -1,0 +1,1 @@
1 +Applications.WebHome
Autors
... ... @@ -1,1 +1,1 @@
1 -XWiki.XWikiGuest
1 +xwiki:XWiki.superadmin
Slēpts
... ... @@ -1,1 +1,1 @@
1 -false
1 +true
Saturs
... ... @@ -1,0 +1,32 @@
1 +{{velocity output="false"}}
2 +#macro (displayAppEntry $params)
3 + #if ($params.icon.startsWith('icon:'))
4 + #set ($icon = $services.icon.renderHTML($params.icon.substring(5)))
5 + #else
6 + #set ($icon = $services.rendering.render($services.rendering.parse("image:${params.icon}", 'xwiki/2.1'),
7 + 'xhtml/1.0'))
8 + #end
9 + <li>
10 + <a href="$xwiki.getURL($params.target, 'view', $!{params.targetQueryString})" title="$escapetool.xml($params.label)">
11 + <span class="application-img">$icon</span>
12 + <span class="application-label">$escapetool.xml($params.label)</span>
13 + </a>
14 + </li>
15 +#end
16 +
17 +#macro (maybeDisplayAppEntry $uix $configDoc)
18 + #set ($params = $uix.getParameters())
19 + #set ($blackListObj = $configDoc.getObject('PanelsCode.ApplicationsPanelBlackListClass', 'applicationId', $uix.id))
20 + #set ($targetReference = $services.model.resolveDocument($params.target))
21 + #if (!$blackListObj && "$!params.icon" != '' && "$!params.label" != '' && "$!params.target" != ''
22 + && $services.security.authorization.hasAccess('view', $targetReference))
23 + #displayAppEntry($params)
24 + #end
25 +#end
26 +
27 +#macro (displayAppEntries $extensionPointId $configDoc)
28 + #foreach ($uix in $services.uix.getExtensions($extensionPointId, {'sortByParameter': 'label'}))
29 + #maybeDisplayAppEntry($uix $configDoc)
30 + #end
31 +#end
32 +{{/velocity}}

Tips

You can click on the arrows next to the breadcrumb elements to quickly navigate to sibling and children pages.

Need help?

If you need help with XWiki you can contact: