<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Creating a site dashboard in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/creating-a-site-dashboard/m-p/301822#M254952</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I've created a web-script module extension and have verified that it works correctly. What it does is takes the &lt;/SPAN&gt;&lt;STRONG&gt;dashboard.xml&lt;/STRONG&gt;&lt;SPAN&gt; and related &lt;/SPAN&gt;&lt;STRONG&gt;page.component-X-Y.type~id~dashboard.xml&lt;/STRONG&gt;&lt;SPAN&gt; files from one site, deletes all dashboard related files on another site then copies the source files to the new site that had them deleted.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;pseudo-code&lt;/STRONG&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;var siteDashboard = getDashboard("site1-shortname");&lt;BR /&gt;var siteDashboard = renameShortNames("site1-shortname", "short2-shortname");&lt;BR /&gt;&lt;BR /&gt;deleteDashboard("site2-shortname");&lt;BR /&gt;createDashboard("site2-shortname", siteDashboard);&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;renameShortNames&lt;/STRONG&gt;&lt;SPAN&gt; just renames the site id inside the dashboard files to the new site's id.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This all works, I've tested and verified it. My problem is that when I go to &lt;/SPAN&gt;&lt;STRONG&gt;&lt;A href="http://alfrescosite.com/alfresco/s/remoteadm/get/s/sitestore/alfresco/site-data/pages/site/site2-shortname/dashboard.xml" rel="nofollow noopener noreferrer"&gt;http://alfrescosite.com/alfresco/s/remoteadm/get/s/sitestore/alfresco/site-data/pages/site/site2-shortname/dashboard.xml&lt;/A&gt;&lt;/STRONG&gt;&lt;SPAN&gt; it shows me the new dashboard layout from &lt;/SPAN&gt;&lt;STRONG&gt;site1-shortname&lt;/STRONG&gt;&lt;SPAN&gt; which is the correct behavior but when I go to the actual site's dashboard within Alfresco share it shows the old &lt;/SPAN&gt;&lt;STRONG&gt;site2-shortname&lt;/STRONG&gt;&lt;SPAN&gt; dashboard. The only way I can get the new dashboard to show is by restarting the Alfresco/Tomcat service. I've even tried looking at the dashboard with a different browser just in case it was a local caching issue but it's not.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any ideas on how to make the dashboards refresh to the new layout without having to restart the Alfresco/Tomcat service every time?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 09 Sep 2015 01:24:08 GMT</pubDate>
    <dc:creator>akusei</dc:creator>
    <dc:date>2015-09-09T01:24:08Z</dc:date>
    <item>
      <title>Creating a site dashboard</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/creating-a-site-dashboard/m-p/301822#M254952</link>
      <description>I've created a web-script module extension and have verified that it works correctly. What it does is takes the dashboard.xml and related page.component-X-Y.type~id~dashboard.xml files from one site, deletes all dashboard related files on another site then copies the source files to the new site tha</description>
      <pubDate>Wed, 09 Sep 2015 01:24:08 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/creating-a-site-dashboard/m-p/301822#M254952</guid>
      <dc:creator>akusei</dc:creator>
      <dc:date>2015-09-09T01:24:08Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a site dashboard</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/creating-a-site-dashboard/m-p/301823#M254953</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I figured out what the problem was. The problem was that I was deleting and recreating the dashboard via &lt;/SPAN&gt;&lt;STRONG&gt;Remote API&lt;/STRONG&gt;&lt;SPAN&gt; calls to the &lt;/SPAN&gt;&lt;STRONG&gt;Alfresco Repository&lt;/STRONG&gt;&lt;SPAN&gt; and doing it that way was making the appropriate changes but not telling Alfresco Share of those changes.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The solution was to use a combination the Share root object &lt;/SPAN&gt;&lt;STRONG&gt;sitedata&lt;/STRONG&gt;&lt;SPAN&gt; to remove the component bindings, delete the components and recreate them through Share so that the changes are automatically updated on the front end without the need for a service restart.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Basically this ended up being a modified version of the code in &lt;/SPAN&gt;&lt;STRONG&gt;customise-dashboard.post.json.js&lt;/STRONG&gt;&lt;SPAN&gt; inside &lt;/SPAN&gt;&lt;STRONG&gt;Alfresco Share&lt;/STRONG&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Sep 2015 23:35:10 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/creating-a-site-dashboard/m-p/301823#M254953</guid>
      <dc:creator>akusei</dc:creator>
      <dc:date>2015-09-11T23:35:10Z</dc:date>
    </item>
  </channel>
</rss>

