# Changes for page Dashboard

Last modified by superadmin on 2017/11/28 14:52

#### Export

#### Office Formats

Export as PDF Export as ODT Export as RTF

#### Other Formats

Select the pages to export:

select all / none

Export as HTML
From empty
To version 1.1
edited by superadmin
on 2017/11/28 14:52
Change comment: Install extension [org.xwiki.platform:xwiki-platform-dashboard-ui/9.9]

## Summary

- Page properties (5 modified, 0 added, 0 removed)
- Objects (0 modified, 5 added, 0 removed)
  - XWiki.DocumentSheetBinding[0]
  - XWiki.GadgetClass[0]
  - XWiki.GadgetClass[1]
  - XWiki.GadgetClass[2]
  - XWiki.GadgetClass[4]

## Details

Page properties
  Title

    ... | ... | @@ -1,0 +1,1 @@
    | 1 | +$services.localization.render('platform.dashboard.wiki')

  Parent

    ... | ... | @@ -1,0 +1,1 @@
    | 1 | +Main.WebHome

  Author

    ... | ... | @@ -1,1 +1,1 @@
    1 |  | -XWiki.XWikiGuest
    | 1 | +xwiki:XWiki.superadmin

  Hidden

    ... | ... | @@ -1,1 +1,1 @@
    1 |  | -false
    | 1 | +true

  Content

    ... | ... | @@ -1,0 +1,33 @@
    | 1 | +{{velocity}}
    | 2 | +#set($displayDashboard = true)
    | 3 | +#if ($xcontext.user != 'XWiki.XWikiGuest')
    | 4 | + ## get the preferences of the current user
    | 5 | + #set($userDbPrefs = $xwiki.getDocument($xcontext.user).getObject('Dashboard.UserDashboardPreferencesClass'))
    | 6 | + #if ($userDbPrefs)
    | 7 | + ## if the object exists, use the object value
    | 8 | + #set($prefValue = $userDbPrefs.getProperty('displayOnMainPage').value)
    | 9 | + #else
    | 10 | + ## if the object does not exist, use the default value of the property in the class
    | 11 | + #set($userPrefClass = $xwiki.getClass('Dashboard.UserDashboardPreferencesClass'))
    | 12 | + #set($displayOnMainPageProp = $userPrefClass.get('displayOnMainPage'))
    | 13 | + #set($prefValue = $displayOnMainPageProp.getProperty('defaultValue').value)
    | 14 | + #end
    | 15 | + #if ($prefValue && $prefValue > 0)
    | 16 | + #set($dashboardObjects = $xwiki.getDocument($xcontext.user).getObjects('XWiki.GadgetClass'))
    | 17 | + #if ($dashboardObjects.size() > 0)
    | 18 | + {{dashboard source = "$xcontext.user" /}}
    | 19 | + #set($displayDashboard = false)
    | 20 | + #else
    | 21 | + #set($editDashboardLabel = $services.localization.render('platform.dashboard.wiki.personal.empty.edit'))
    | 22 | + #set($editDashboardUrl = $xwiki.getURL($xcontext.user, 'inline', 'category=dashboard'))
    | 23 | + {{info}}{{html}}$services.localization.render('platform.dashboard.wiki.personal.empty', ["<a href='${editDashboardUrl}'>$editDashboardLabel</a>"]){{/html}}{{/info}}
    | 24 | + #set($displayDashboard = true)
    | 25 | + #end
    | 26 | + #end
    | 27 | +#end
    | 28 | +
    | 29 | +#if($displayDashboard)
    | 30 | + {{dashboard/}}
    | 31 | +#end
    | 32 | +
    | 33 | +{{/velocity}}

XWiki.DocumentSheetBinding[0]
XWiki.GadgetClass[0]
  content

    ... | ... | @@ -1,0 +1,1 @@
    | 1 | +{{documentTree showTranslations="false" showAttachments="false"/}}

  position

    ... | ... | @@ -1,0 +1,1 @@
    | 1 | +1, 1

  title

    ... | ... | @@ -1,0 +1,1 @@
    | 1 | +$services.localization.render('platform.dashboard.wiki.pages')

XWiki.GadgetClass[1]
  content

    ... | ... | @@ -1,0 +1,1 @@
    | 1 | +{{tagcloud/}}

  position

    ... | ... | @@ -1,0 +1,1 @@
    | 1 | +1, 2

  title

    ... | ... | @@ -1,0 +1,1 @@
    | 1 | +$services.localization.render('platform.dashboard.wiki.tagcloud')

XWiki.GadgetClass[2]
  content

    ... | ... | @@ -1,0 +1,1 @@
    | 1 | +{{activity rss="true"/}}

  position

    ... | ... | @@ -1,0 +1,1 @@
    | 1 | +2, 2

  title

    ... | ... | @@ -1,0 +1,1 @@
    | 1 | +$services.localization.render('platform.dashboard.wiki.activity')

XWiki.GadgetClass[4]
  content

    ... | ... | @@ -1,0 +1,13 @@
    | 1 | +{{velocity}}
    | 2 | +#if ($services.messageStream.isActive())
    | 3 | + #if (!$isGuest)
    | 4 | + {{messageSender/}}
    | 5 | + #else
    | 6 | + #set ($queryString = "xredirect=$escapetool.url($xwiki.requestURL)")
    | 7 | + (%class='noitems'%)$services.localization.render('xe.activity.messages.error.loginToSendMessage', ["path:$doc.getURL('login', $queryString)"])
    | 8 | + #end
    | 9 | +#elseif ($xcontext.action == 'edit')
    | 10 | + #set ($url = $xwiki.getURL('XWiki.XWikiPreferences', 'admin', 'editor=globaladmin&section=MessageStream'))
    | 11 | + $services.localization.render('xe.activity.messages.inactive', ["path:$url"])
    | 12 | +#end
    | 13 | +{{/velocity}}

  position

    ... | ... | @@ -1,0 +1,1 @@
    | 1 | +2, 1

  title

    ... | ... | @@ -1,0 +1,1 @@
    | 1 | +$services.localization.render('platform.dashboard.wiki.messageSender')

# Applications

# Tips

Jump to any page in the wiki with Ctrl+G or Meta+G.
See more shortcuts.

# Need help?

If you need help with XWiki you can contact:

- Community Support
- Professional Support