# Wiki源代码Dashboard

由 CMO 于 2022-05-03 最后修改
导出
Office格式
以PDF格式导出 以ODT格式导出 以RTF格式导出
其他格式

选择要导出的页面：

选择所有/ 无

Legend:
  已创建页面
  修改后的扩展页
  Clean Extension Page

以HTML格式导出

隐藏最后作者

author | version | line-number | content
--- | --- | --- | ---
| 1.1 | 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}}
|  | 34 |

# 同级页面

# 博客类别

- https://www.keqiongpan.cn:80/bin/view/Blog/">全部

- News (0)
- Other (0)
- Personal (0)

# 当前已创建的

- 线性布局组件与占位组件
- React
- CSS Flexbox Cheat Sheet
- CSS界面布局控制属性概述
- CSS

粤公网安备 44011802000481号 粤ICP备2020117634号
版权所有，如发现盗用模仿必追诉法律责任！
CopyRight © 2020-2023 keqiongpan.cn. All Right Reserved.