<?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 repository access? in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/repository-access/m-p/176349#M129479</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello community,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;i will change .ftl file of a webscript. I read following text in Web Scripts Extensions folder.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Documentation on how to develop a Web Script may be found here.&lt;BR /&gt;&lt;BR /&gt;Any part of a Web Script (i.e. its description, "execute" javascript, or "response" template) may be overridden. This is achieved by copying the original part to this extension folder. The folder within which the part lives must be replicated in this extension area too.&lt;BR /&gt;&lt;BR /&gt;e.g. to override the html output of the "Keyword search" script…&lt;BR /&gt;&lt;BR /&gt;copy&lt;BR /&gt;&lt;BR /&gt;/Data Dictionary/Web Scripts/org/alfresco/repository/keywordsearch.get.html.ftl&lt;BR /&gt;&lt;BR /&gt;to&lt;BR /&gt;&lt;BR /&gt;/Data Dictionary/Web Scripts Extensions/org/alfresco/repository/keywordsearch.get.html.ftl&lt;BR /&gt;&lt;BR /&gt;Once copied, you can make your changes to the copy.&lt;BR /&gt;&lt;BR /&gt;To ensure your override is registered, go to /alfresco/service/ and click on the "Refresh List of Web Scripts" button. The next invocation of the web script will include your override.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;My problem: i dont see &lt;/SPAN&gt;&lt;EM&gt; /Data Dictionary/Web Scripts/org/alfresco/&lt;STRONG&gt;repository&lt;/STRONG&gt;/&lt;/EM&gt;&lt;SPAN&gt; folder. it exists only &lt;/SPAN&gt;&lt;EM&gt;…org/alfresco/&lt;STRONG&gt;sample&lt;/STRONG&gt;…&lt;/EM&gt;&lt;SPAN&gt; What can i do to get access to repository path?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Noah&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 20 Sep 2008 14:18:05 GMT</pubDate>
    <dc:creator>noah</dc:creator>
    <dc:date>2008-09-20T14:18:05Z</dc:date>
    <item>
      <title>repository access?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/repository-access/m-p/176349#M129479</link>
      <description>Hello community,i will change .ftl file of a webscript. I read following text in Web Scripts Extensions folder.Documentation on how to develop a Web Script may be found here.Any part of a Web Script (i.e. its description, "execute" javascript, or "response" template) may be overridden. This is achie</description>
      <pubDate>Sat, 20 Sep 2008 14:18:05 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/repository-access/m-p/176349#M129479</guid>
      <dc:creator>noah</dc:creator>
      <dc:date>2008-09-20T14:18:05Z</dc:date>
    </item>
    <item>
      <title>Re: repository access?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/repository-access/m-p/176350#M129480</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You can create a folder called 'repository' under the Data Dictionary/Web Script Extensions/org/alfresco/ repository path. Alternatively you can create whatever folder structure you like e.g. Data Dictionary/Web Script Extensions/com/mycompany/search/&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Then place your 2 or 3 associated Web Script files in a folder, so keywordsearch.get.html.ftl, keywordsearch.get.js, keywordsearch.get.desc.xml.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The edit the *.desc.xml file, important to take note of the value you set for the url as this is how you call the script. So say you configure the url&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;/com/mycompany/keywordsearch&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The next thing is to call &lt;/SPAN&gt;&lt;STRONG&gt;http://&amp;lt;host&amp;gt;:&amp;lt;port&amp;gt;/alfresco/service/&lt;/STRONG&gt;&lt;SPAN&gt; and hit the refresh scripts button - this will load your new script (you should see the total script count change to verify it was picked up).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Now you can call this via &lt;/SPAN&gt;&lt;STRONG&gt;http://&amp;lt;host&amp;gt;:&amp;lt;port&amp;gt;/alfresco/service&lt;SPAN style="text-decoration: underline;"&gt;/com/mycompany/keywordsearch&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;You could also pass parameters to the script - these are accessible in the *.get.js file via the &lt;/SPAN&gt;&lt;STRONG&gt;args&lt;/STRONG&gt;&lt;SPAN&gt; associative array.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;So &lt;/SPAN&gt;&lt;STRONG&gt;http://&amp;lt;host&amp;gt;:&amp;lt;port&amp;gt;/alfresco/service/com/mycompany/keywordsearch?keyword=alfresco&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;you'd find the value of the keyword param in args["keyword"].&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You'll find more info here &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>Fri, 03 Oct 2008 08:32:44 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/repository-access/m-p/176350#M129480</guid>
      <dc:creator>steventux</dc:creator>
      <dc:date>2008-10-03T08:32:44Z</dc:date>
    </item>
  </channel>
</rss>

