如何在alfresco共享中对用户仪表板进行新的更改?

时间:2013-07-04 18:09:05

标签: alfresco alfresco-share

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

2 个答案:

答案 0 :(得分:2)

请参阅此共享webscript:/ components / dashboard / customize-dashboard 我很久以前就使用过这个脚本了,所以我并没有很好地提醒所需的参数......但是你必须避免在object参数中有一个属性......

编辑:使用POST方法执行脚本/ components / dashboard / customize-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"
        }
    ]
}

答案 1 :(得分:0)

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