<?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: What is the file structure of the Share Webscript extensions in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/what-is-the-file-structure-of-the-share-webscript-extensions/m-p/263888#M217018</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Sorry for the slow response on this… &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;An extension module a Surf configuration object so you should place XML files containing module configuration in any of the locations where Surf config gets picked up… e.g. "&amp;lt;web-server&amp;gt;/webapps/share/WEB-INF/classes/alfresco/site-data" (there are lots of places where Surf configuration gets picked up, but "alfresco/site-data" on the classpath is the most common). Extension config files should be placed in the "extensions" folder within the directory… so you could place an extension config file in:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;"alfresco/site-data/extensions" or "alfresco/web-extension/site-data/extensions" for example.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You could create a JAR file containing this folder structure. Everything that the extension refers to (e.g. WebScripts, other Surf config objects such as Pages, Template-Instances, Components, etc) should just be placed in their normal location. These can also be built into a JAR file.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you want to access resources (e.g. CSS, images, JS) from a JAR file then place them in the META-INF folder of the JAR. You should place your JAR file in the "&amp;lt;web-server&amp;gt;/webapps/share/WEB-INF/lib" directory (obviously your server will need to be restarted to pick up new JAR contents).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;WebScripts should can be in (on the classpath):&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"alfresco/site-webscripts"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"alfresco/web-extension/site-webscripts"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"webscripts"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can also configure other locations in the Surf configuration from which to load Surf config objects/WebScripts. It's pretty much endlessly customizable but you should probably just stick to the default locations configured for Share.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Dave&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 27 Sep 2012 09:27:09 GMT</pubDate>
    <dc:creator>ddraper</dc:creator>
    <dc:date>2012-09-27T09:27:09Z</dc:date>
    <item>
      <title>What is the file structure of the Share Webscript extensions</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/what-is-the-file-structure-of-the-share-webscript-extensions/m-p/263887#M217017</link>
      <description>Hello,I've been reading David Drapers' blog on the new feature - the extension of share webscripts.But I didn't find any working example: what is the file naming and structure convention?From what I gather, I have a module configuration file, and I don't know how to name it or where to put it (share</description>
      <pubDate>Mon, 24 Sep 2012 16:47:46 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/what-is-the-file-structure-of-the-share-webscript-extensions/m-p/263887#M217017</guid>
      <dc:creator>zladuric</dc:creator>
      <dc:date>2012-09-24T16:47:46Z</dc:date>
    </item>
    <item>
      <title>Re: What is the file structure of the Share Webscript extensions</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/what-is-the-file-structure-of-the-share-webscript-extensions/m-p/263888#M217018</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Sorry for the slow response on this… &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;An extension module a Surf configuration object so you should place XML files containing module configuration in any of the locations where Surf config gets picked up… e.g. "&amp;lt;web-server&amp;gt;/webapps/share/WEB-INF/classes/alfresco/site-data" (there are lots of places where Surf configuration gets picked up, but "alfresco/site-data" on the classpath is the most common). Extension config files should be placed in the "extensions" folder within the directory… so you could place an extension config file in:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;"alfresco/site-data/extensions" or "alfresco/web-extension/site-data/extensions" for example.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You could create a JAR file containing this folder structure. Everything that the extension refers to (e.g. WebScripts, other Surf config objects such as Pages, Template-Instances, Components, etc) should just be placed in their normal location. These can also be built into a JAR file.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you want to access resources (e.g. CSS, images, JS) from a JAR file then place them in the META-INF folder of the JAR. You should place your JAR file in the "&amp;lt;web-server&amp;gt;/webapps/share/WEB-INF/lib" directory (obviously your server will need to be restarted to pick up new JAR contents).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;WebScripts should can be in (on the classpath):&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"alfresco/site-webscripts"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"alfresco/web-extension/site-webscripts"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"webscripts"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can also configure other locations in the Surf configuration from which to load Surf config objects/WebScripts. It's pretty much endlessly customizable but you should probably just stick to the default locations configured for Share.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Dave&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Sep 2012 09:27:09 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/what-is-the-file-structure-of-the-share-webscript-extensions/m-p/263888#M217018</guid>
      <dc:creator>ddraper</dc:creator>
      <dc:date>2012-09-27T09:27:09Z</dc:date>
    </item>
    <item>
      <title>Re: What is the file structure of the Share Webscript extensions</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/what-is-the-file-structure-of-the-share-webscript-extensions/m-p/263889#M217019</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you very much for the reply! If you care for stackoverflow points, copy this post here: &lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://stackoverflow.com/questions/12569495/what-is-the-file-structure-of-the-share-webscript-extensions-for-alfresco-4-0-3" rel="nofollow noopener noreferrer"&gt;http://stackoverflow.com/questions/12569495/what-is-the-file-structure-of-the-share-webscript-extensions-for-alfresco-4-0-3&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also, this sounds awesome, I could basically have half my stuff packed in a jar, half lying around…&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Like you said, endlesly customizable. I'll stick to having it in a single jar though, thanks anyway.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Sep 2012 21:38:44 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/what-is-the-file-structure-of-the-share-webscript-extensions/m-p/263889#M217019</guid>
      <dc:creator>zladuric</dc:creator>
      <dc:date>2012-09-27T21:38:44Z</dc:date>
    </item>
    <item>
      <title>Re: What is the file structure of the Share Webscript extensions</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/what-is-the-file-structure-of-the-share-webscript-extensions/m-p/263890#M217020</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm not especially bothered about the points but I've posted the answer and a link back to this topic in case other people find the question,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Dave&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Sep 2012 06:43:17 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/what-is-the-file-structure-of-the-share-webscript-extensions/m-p/263890#M217020</guid>
      <dc:creator>ddraper</dc:creator>
      <dc:date>2012-09-28T06:43:17Z</dc:date>
    </item>
  </channel>
</rss>

