<?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: Module dependent custom-slingshot-application-context.xml in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/module-dependent-custom-slingshot-application-context-xml/m-p/307266#M260396</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;First you need to create a Spring configuration file and place it in the package alfresco.module.&amp;lt;moduleId&amp;gt; and the file should be called module-context.xml.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Then you have two options :&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;option 1, paste you content of custom-slingshot-application-context.xml in to module-context.xml.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;option 2 ,place custom-slingshot-application-context.xml in module package and import it into module-context.xml,like following&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;&amp;lt;?xml version='1.0' encoding='UTF-8'?&amp;gt;&lt;BR /&gt;&amp;lt;!DOCTYPE beans PUBLIC '-//SPRING//DTD BEAN//EN' '&lt;A href="http://www.springframework.org/dtd/spring-beans.dtd" rel="nofollow noopener noreferrer"&gt;http://www.springframework.org/dtd/spring-beans.dtd&lt;/A&gt;'&amp;gt;&lt;BR /&gt;&amp;lt;beans&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;import resource="classpath:alfresco/module/&amp;lt;moduleId&amp;gt;/custom-slingshot-application-context.xml" /&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&amp;lt;/beans&amp;gt;&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;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 20 Nov 2013 14:28:32 GMT</pubDate>
    <dc:creator>kaynezhang</dc:creator>
    <dc:date>2013-11-20T14:28:32Z</dc:date>
    <item>
      <title>Module dependent custom-slingshot-application-context.xml</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/module-dependent-custom-slingshot-application-context-xml/m-p/307265#M260395</link>
      <description>Hi all,I've developed some extensions (evaluator + indicator to provide some icons and a new document action for documents of our content types) that requires changes in the custom-slingshot-application-context.xml[1][2] in combination with changes in the share-config-custom.xml.All works fine so, f</description>
      <pubDate>Wed, 20 Nov 2013 14:09:31 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/module-dependent-custom-slingshot-application-context-xml/m-p/307265#M260395</guid>
      <dc:creator>itzamna</dc:creator>
      <dc:date>2013-11-20T14:09:31Z</dc:date>
    </item>
    <item>
      <title>Re: Module dependent custom-slingshot-application-context.xml</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/module-dependent-custom-slingshot-application-context-xml/m-p/307266#M260396</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;First you need to create a Spring configuration file and place it in the package alfresco.module.&amp;lt;moduleId&amp;gt; and the file should be called module-context.xml.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Then you have two options :&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;option 1, paste you content of custom-slingshot-application-context.xml in to module-context.xml.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;option 2 ,place custom-slingshot-application-context.xml in module package and import it into module-context.xml,like following&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;&amp;lt;?xml version='1.0' encoding='UTF-8'?&amp;gt;&lt;BR /&gt;&amp;lt;!DOCTYPE beans PUBLIC '-//SPRING//DTD BEAN//EN' '&lt;A href="http://www.springframework.org/dtd/spring-beans.dtd" rel="nofollow noopener noreferrer"&gt;http://www.springframework.org/dtd/spring-beans.dtd&lt;/A&gt;'&amp;gt;&lt;BR /&gt;&amp;lt;beans&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;import resource="classpath:alfresco/module/&amp;lt;moduleId&amp;gt;/custom-slingshot-application-context.xml" /&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&amp;lt;/beans&amp;gt;&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;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Nov 2013 14:28:32 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/module-dependent-custom-slingshot-application-context-xml/m-p/307266#M260396</guid>
      <dc:creator>kaynezhang</dc:creator>
      <dc:date>2013-11-20T14:28:32Z</dc:date>
    </item>
    <item>
      <title>Re: Module dependent custom-slingshot-application-context.xml</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/module-dependent-custom-slingshot-application-context-xml/m-p/307267#M260397</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you for the both approches. I think I'll prefer option 1 as with this, there is one file less. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;One question I have for the location of the module-context.xml: Where do I have to place it or otherwise where should this file be placed after the deployment in the exploded web-app?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I do have a module-context.xml already in my Alfresco Explorer project that is in folder "/src/main/config" (IDE) and will be deployed to "webapps/alfresco/WEB-INF/classes/alfresco/module/myModule". But for Alfresco Share, I have currently less experience, so I don't know how to place the file there? I tried it similar, so with copying the file manually to "webapps/share/WEB-INF/classes/alfresco/module/myModuleShare" but it won't work and I get the error "&lt;/SPAN&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;[org.alfresco.web.scripts.ActionEvaluatorHelper] Evaluator 'myCompany.product.doclib.icon.openInExternalProgram.folders' not found.&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt;" in logs.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for any further hint.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Nov 2013 17:23:34 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/module-dependent-custom-slingshot-application-context-xml/m-p/307267#M260397</guid>
      <dc:creator>itzamna</dc:creator>
      <dc:date>2013-11-20T17:23:34Z</dc:date>
    </item>
    <item>
      <title>Re: Module dependent custom-slingshot-application-context.xml</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/module-dependent-custom-slingshot-application-context-xml/m-p/307268#M260398</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm still glad of any further advice. Thanks!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've placed the file now in folder:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;..\Git\myShareProject\src\main\resources\alfresco\web-extension&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've renamed it from "custom-slingshot-application-context.xml" into "custom-slingshot-myModuleName-context.xml". It seems to be working right now.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;BUT: Is this a convenient approach?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Dec 2013 13:41:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/module-dependent-custom-slingshot-application-context-xml/m-p/307268#M260398</guid>
      <dc:creator>itzamna</dc:creator>
      <dc:date>2013-12-19T13:41:00Z</dc:date>
    </item>
  </channel>
</rss>

