<?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 Re: WebView Dashlet &amp; modifiy JavaScript in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/webview-dashlet-modifiy-javascript/m-p/225701#M178831</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you all. I have modified the webview.get.html.ftl. It is not the best solution but it works at the moment.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 29 Oct 2009 09:03:25 GMT</pubDate>
    <dc:creator>sf_urzl</dc:creator>
    <dc:date>2009-10-29T09:03:25Z</dc:date>
    <item>
      <title>WebView Dashlet &amp; modifiy JavaScript</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/webview-dashlet-modifiy-javascript/m-p/225693#M178823</link>
      <description>Hello,i've placed a WebView Dashlet on a site. But all users have the possibility to access the configure link of the dashlet. Can i prohibit it so that only the the managers or admin can change the content of the dashlet?Edit: I've tried to modify ../Alfresco/tomcat/webapps/share/components/dashlet</description>
      <pubDate>Wed, 28 Oct 2009 12:30:10 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/webview-dashlet-modifiy-javascript/m-p/225693#M178823</guid>
      <dc:creator>sf_urzl</dc:creator>
      <dc:date>2009-10-28T12:30:10Z</dc:date>
    </item>
    <item>
      <title>Re: WebView Dashlet &amp; modifiy JavaScript</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/webview-dashlet-modifiy-javascript/m-p/225694#M178824</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You have restart tomcat, or do a refresh on webscript services in url:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;A class="jive-link-external-small" href="http://" rel="nofollow noopener noreferrer"&gt;http://&lt;/A&gt;&lt;SPAN&gt;&amp;lt;share_server&amp;gt;/share/service/&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Oct 2009 12:49:12 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/webview-dashlet-modifiy-javascript/m-p/225694#M178824</guid>
      <dc:creator>zoao</dc:creator>
      <dc:date>2009-10-28T12:49:12Z</dc:date>
    </item>
    <item>
      <title>Re: WebView Dashlet &amp; modifiy JavaScript</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/webview-dashlet-modifiy-javascript/m-p/225695#M178825</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello zoao,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;i have restartet the tomcat, but there is no change…&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Oct 2009 12:53:22 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/webview-dashlet-modifiy-javascript/m-p/225695#M178825</guid>
      <dc:creator>sf_urzl</dc:creator>
      <dc:date>2009-10-28T12:53:22Z</dc:date>
    </item>
    <item>
      <title>Re: WebView Dashlet &amp; modifiy JavaScript</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/webview-dashlet-modifiy-javascript/m-p/225696#M178826</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You already tried to make another kind of modification, to see if it works? Particularly in the template file (webview.get.html.ftl), which can be easier to see the change?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;And no need to restart the tomcat is faster if you use the link that I suggested.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;More info about webscript: &lt;/SPAN&gt;&lt;A href="http://wiki.alfresco.com/wiki/Web_Scripts" rel="nofollow noopener noreferrer"&gt;http://wiki.alfresco.com/wiki/Web_Scripts&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Oct 2009 13:00:30 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/webview-dashlet-modifiy-javascript/m-p/225696#M178826</guid>
      <dc:creator>zoao</dc:creator>
      <dc:date>2009-10-28T13:00:30Z</dc:date>
    </item>
    <item>
      <title>Re: WebView Dashlet &amp; modifiy JavaScript</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/webview-dashlet-modifiy-javascript/m-p/225697#M178827</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You don't need to restart Tomcat, or reset webscripts if you're just updating the client-side assets. You may need to force-refresh your browser, or empty it's cache however.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Mike&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Oct 2009 13:18:59 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/webview-dashlet-modifiy-javascript/m-p/225697#M178827</guid>
      <dc:creator>mikeh</dc:creator>
      <dc:date>2009-10-28T13:18:59Z</dc:date>
    </item>
    <item>
      <title>Re: WebView Dashlet &amp; modifiy JavaScript</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/webview-dashlet-modifiy-javascript/m-p/225698#M178828</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Sorry for the mistake, when I read the post I thought he was change the server side.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Because I think in this case is more logical to change the template on the server side to only show the link when the user is Admin or has permissions to customize the Dashlet.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Oct 2009 14:07:23 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/webview-dashlet-modifiy-javascript/m-p/225698#M178828</guid>
      <dc:creator>zoao</dc:creator>
      <dc:date>2009-10-28T14:07:23Z</dc:date>
    </item>
    <item>
      <title>Re: WebView Dashlet &amp; modifiy JavaScript</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/webview-dashlet-modifiy-javascript/m-p/225699#M178829</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;No, zoao was right. I've cleared my cache, restart alfresco, doing anything but there is no change in behavior. Is there another way to modify the WebView Dashlet that only the admin can change the URL?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Edit: I will try it about modifying the webview.get.html.ftl like zoao said.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Oct 2009 15:20:42 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/webview-dashlet-modifiy-javascript/m-p/225699#M178829</guid>
      <dc:creator>sf_urzl</dc:creator>
      <dc:date>2009-10-28T15:20:42Z</dc:date>
    </item>
    <item>
      <title>Re: WebView Dashlet &amp; modifiy JavaScript</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/webview-dashlet-modifiy-javascript/m-p/225700#M178830</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You're going to have to modify more than just the Freemarker template I'm afraid.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You need something like this in the webview.get.js:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;model.isManager = false;&lt;BR /&gt;&lt;BR /&gt;// Check the role of the user - only SiteManagers are allowed to configure the dashlet&lt;BR /&gt;var obj = context.properties["memberships"];&lt;BR /&gt;if (!obj)&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp;&amp;nbsp; var json = remote.call("/api/sites/" + page.url.templateArgs.site + "/memberships/" + stringUtils.urlEncode(user.name));&lt;BR /&gt;&amp;nbsp;&amp;nbsp; if (json.status == 200)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; obj = eval('(' + json + ')');&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Store the memberships into the request context, so it can be used&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // downstream by other components - saves making same call many times&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; context.setValue("memberships", obj);&lt;BR /&gt;&amp;nbsp;&amp;nbsp; }&lt;BR /&gt;}&lt;BR /&gt;if (obj)&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp;&amp;nbsp; model.isManager = (obj.role == "SiteManager");&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;/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;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;SPAN&gt;However, that's not a complete solution because the WebView dashlet can also sit on a User's dashboard page as well as a Site's. This should get you started however.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Mike&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Oct 2009 16:16:21 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/webview-dashlet-modifiy-javascript/m-p/225700#M178830</guid>
      <dc:creator>mikeh</dc:creator>
      <dc:date>2009-10-28T16:16:21Z</dc:date>
    </item>
    <item>
      <title>Re: WebView Dashlet &amp; modifiy JavaScript</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/webview-dashlet-modifiy-javascript/m-p/225701#M178831</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you all. I have modified the webview.get.html.ftl. It is not the best solution but it works at the moment.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Oct 2009 09:03:25 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/webview-dashlet-modifiy-javascript/m-p/225701#M178831</guid>
      <dc:creator>sf_urzl</dc:creator>
      <dc:date>2009-10-29T09:03:25Z</dc:date>
    </item>
  </channel>
</rss>

