1

如果我要更改用户/站点仪表板预设,是否可以对已在 alfresco 中创建的用户进行更改?

4

2 回答 2

2

看到这个分享webscript:/components/dashboard/customise-dashboard 我很久以前就用这个脚本了,所以没有很好的提醒需要的参数...但是object参数中有一个属性你必须避免.. .

编辑:使用 POST 方法执行脚本 /components/dashboard/customise-dashboard

这是请求正文的示例:

{
    "dashboardPage": "site/site1/dashboard",
    "templateId": "dashboard-2-columns-wide-right",
    "dashlets": [
        {
            "url": "/components/dashlets/site-links",
            "regionId": "component-1-1",
            "originalRegionId": "component-1-1"
        },
        {
            "url": "/components/dashlets/calendar",
            "regionId": "component-1-2",
            "originalRegionId": "component-1-2"
        },
        {
            "url": "/components/dashlets/wiki",
            "regionId": "component-1-3",
            "originalRegionId": "component-2-3"
        },
        {
            "url": "/components/dashlets/docsummary",
            "regionId": "component-2-1",
            "originalRegionId": "component-2-1"
        },
        {
            "url": "/components/dashlets/activityfeed",
            "regionId": "component-2-2",
            "originalRegionId": "component-2-2"
        }
    ]
}
于 2013-07-05T08:10:48.717 回答
0

这我只在 4.2.c 中尝试过。我导航到资源管理器中的 surf-config/components 目录(隐藏得非常好,因此使用左侧资源管理器窗格)并手动删除了用户的 xml 配置。(或者从 javascript 控制台运行一个 javascript 脚本,它做同样的事情),之后我使用 surf 控制台工具刷新所有组件并且它工作。

于 2013-12-17T16:35:51.617 回答