<?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: How to customise share-config-custom.xml from a module? in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/how-to-customise-share-config-custom-xml-from-a-module/m-p/280994#M234124</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Just want to ask / note an issue I ran into:&amp;nbsp; If you try to setup system level features, such as CSRFPolicy via a tomcat/shared/classes/alfresco/web-extension/share-config-custom.xml&amp;nbsp; but there is an amp that also has share-config-custom.xml file, the AMP will take precedence and the /shared/ version will *not* get loaded.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This introduces some problems for at least me, where I want system administrators the ability to adjust configurations around reverse proxy setups, but still want developers to create extensions for things like search form definitions for custom content models.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thoughts / ideas?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;-D&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 17 Feb 2015 14:42:11 GMT</pubDate>
    <dc:creator>dhartford</dc:creator>
    <dc:date>2015-02-17T14:42:11Z</dc:date>
    <item>
      <title>How to customise share-config-custom.xml from a module?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-customise-share-config-custom-xml-from-a-module/m-p/280990#M234120</link>
      <description>Hi all,I would like to wrap some of our customisations to share up into an amp file. How does one deploy customisations to share-config-custom.xml?thanks</description>
      <pubDate>Tue, 01 Apr 2014 11:07:28 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-customise-share-config-custom-xml-from-a-module/m-p/280990#M234120</guid>
      <dc:creator>mxc</dc:creator>
      <dc:date>2014-04-01T11:07:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to customise share-config-custom.xml from a module?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-customise-share-config-custom-xml-from-a-module/m-p/280991#M234121</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Check this out&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://forums.alfresco.com/forum/developer-discussions/alfresco-share-development/amp-share-04272010-1422" rel="nofollow noopener noreferrer"&gt;http://forums.alfresco.com/forum/developer-discussions/alfresco-share-development/amp-share-04272010-1422&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Apr 2014 13:01:47 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-customise-share-config-custom-xml-from-a-module/m-p/280991#M234121</guid>
      <dc:creator>mitpatoliya</dc:creator>
      <dc:date>2014-04-01T13:01:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to customise share-config-custom.xml from a module?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-customise-share-config-custom-xml-from-a-module/m-p/280992#M234122</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks Mits for the link. I know how to include the js, css, freemarker and other files. I was wondering how one can add the customisations to share-config.xml or share-config-custom.xml to the project. I am hoping there is a way similar to how spring framework application context files are picked up based on naming conventions like context.xml. I think this might be a surf thing since I assume share-config-custom.xml is a surf specific config file. All the tutorials I read just say to make changes to the custom file. But how does one make this portable in a module?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If the link does explain this I couldn't find it covered in the post. But it might be my mistake.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Apr 2014 13:45:24 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-customise-share-config-custom-xml-from-a-module/m-p/280992#M234122</guid>
      <dc:creator>mxc</dc:creator>
      <dc:date>2014-04-01T13:45:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to customise share-config-custom.xml from a module?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-customise-share-config-custom-xml-from-a-module/m-p/280993#M234123</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If you just want to include &amp;lt;em&amp;gt;share-config-custom.xml&amp;lt;/em&amp;gt; in a AMP file, you can try and get it to:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;strong&amp;gt;share.war!/WEB-INF/classes/alfresco/web-extension/share-config-custom.xml&amp;lt;/strong&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So it should appear in the AMP:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;strong&amp;gt;my-project.amp!/config/alfresco/web-extension/share-config-custom.xml&amp;lt;/strong&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you are using (for instance) Maven with the archetype &amp;lt;em&amp;gt;org.alfresco.maven.archetype:alfresco-amp-archetype:1.1.1&amp;lt;/em&amp;gt;, it should be there in the project:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;strong&amp;gt;my-project:/config/alfresco/web-extension/share-config-custom.xml&amp;lt;/strong&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But you could also wrap it further into the embedded JAR like this (sometime useful &amp;lt;a&amp;gt;&lt;/SPAN&gt;&lt;A href="http://stackoverflow.com/questions/22098191/what-is-the-difference-in-packaging-alfresco-extension-as-amp-and-jar" rel="nofollow noopener noreferrer"&gt;http://stackoverflow.com/questions/22098191/what-is-the-difference-in-packaging-alfresco-extension-as-amp-and-jar&lt;/A&gt;&lt;SPAN&gt;&amp;lt;/a&amp;gt;, &amp;lt;a&amp;gt;&lt;/SPAN&gt;&lt;A href="http://josh-barrett.blogspot.fr/2012/10/amps-vs-jars-for-alfresco-customizations_3605.html" rel="nofollow noopener noreferrer"&gt;http://josh-barrett.blogspot.fr/2012/10/amps-vs-jars-for-alfresco-customizations_3605.html&lt;/A&gt;&lt;SPAN&gt;&amp;lt;/a&amp;gt;):&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;strong&amp;gt;my-projet.amp!/lib/my-project.jar!/META-INF/share-config-custom.xml&amp;lt;/strong&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In this case, you would need to put it inside the &amp;lt;em&amp;gt;resources&amp;lt;/em&amp;gt; folder of your project:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;strong&amp;gt;my-project:/src/main/resources/META-INF/share-config-custom.xml&amp;lt;/strong&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If I posted something wrong please react.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Me, I’m searching for a way to get the &amp;lt;em&amp;gt;share-config-custom.xml&amp;lt;/em&amp;gt; inside the module (so I could enable or disable it from the Share interface &amp;lt;a&amp;gt;&lt;/SPAN&gt;&lt;A href="http://localhost:8080/share/page/modules/deploy" rel="nofollow noopener noreferrer"&gt;http://localhost:8080/share/page/modules/deploy&lt;/A&gt;&lt;SPAN&gt;&amp;lt;/a&amp;gt;). I think I may give up without knowing if it’s actually possible.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 May 2014 21:03:45 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-customise-share-config-custom-xml-from-a-module/m-p/280993#M234123</guid>
      <dc:creator>boumbh</dc:creator>
      <dc:date>2014-05-28T21:03:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to customise share-config-custom.xml from a module?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-customise-share-config-custom-xml-from-a-module/m-p/280994#M234124</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Just want to ask / note an issue I ran into:&amp;nbsp; If you try to setup system level features, such as CSRFPolicy via a tomcat/shared/classes/alfresco/web-extension/share-config-custom.xml&amp;nbsp; but there is an amp that also has share-config-custom.xml file, the AMP will take precedence and the /shared/ version will *not* get loaded.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This introduces some problems for at least me, where I want system administrators the ability to adjust configurations around reverse proxy setups, but still want developers to create extensions for things like search form definitions for custom content models.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thoughts / ideas?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;-D&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Feb 2015 14:42:11 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-customise-share-config-custom-xml-from-a-module/m-p/280994#M234124</guid>
      <dc:creator>dhartford</dc:creator>
      <dc:date>2015-02-17T14:42:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to customise share-config-custom.xml from a module?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-customise-share-config-custom-xml-from-a-module/m-p/280995#M234125</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have a similar problem. I set up a Kerberos configuration via tomcat/shared/classes/alfresco/web-extension/share-config-custom.xml, but external suppliers deploy AMP with definitions for custom models that override a shared share-config-custom.xml file and break Kerberos feature.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Have you found a best practice to avoid this problem?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Feb 2015 10:56:33 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-customise-share-config-custom-xml-from-a-module/m-p/280995#M234125</guid>
      <dc:creator>dmolina</dc:creator>
      <dc:date>2015-02-25T10:56:33Z</dc:date>
    </item>
  </channel>
</rss>

