<?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 Override client side JS in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/override-client-side-js/m-p/34318#M14495</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How can I&amp;nbsp;override e.g.&lt;/P&gt;&lt;PRE class="line-numbers language-markup"&gt;&lt;CODE&gt;{share.war}/components/documentlibrary/documentlist-view-detailed.js‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;in SDK 3.0 (alfresco-share-jar-archetype)?&lt;/P&gt;&lt;P&gt;I tried:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;putting my custom &lt;SPAN&gt;documentlist-view-detailed.js‍‍&amp;nbsp;&lt;/SPAN&gt;into src/main/assembly/web/components/documentlibrary/ with the default file-mappings.properties (already maps /web=/)&lt;/LI&gt;&lt;LI&gt;put my&amp;nbsp;&lt;SPAN&gt;custom&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;documentlist-view-detailed.js‍‍ into src/main/resources/META-INF/resources/components/documentlibrary/&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;SPAN&gt;Nothing works ... it ends up in {custom.amp}/web/components/documentlibrary/ but running the maven project does not load it, alfresco ignores it.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 04 Aug 2017 15:14:24 GMT</pubDate>
    <dc:creator>binary_101</dc:creator>
    <dc:date>2017-08-04T15:14:24Z</dc:date>
    <item>
      <title>Override client side JS</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/override-client-side-js/m-p/34318#M14495</link>
      <description>How can I&amp;nbsp;override e.g.{share.war}/components/documentlibrary/documentlist-view-detailed.js‍‍in SDK 3.0 (alfresco-share-jar-archetype)?I tried&lt;IMG id="smileytongue" class="emoticon emoticon-smileytongue" src="https://migration33.stage.lithium.com/i/smilies/16x16_smiley-tongue.png" alt="Smiley Tongue" title="Smiley Tongue" /&gt;utting my custom documentlist-view-detailed.js‍‍&amp;nbsp;into src/main/assembly/web/components/documentlibrary/ with the default file-mappings.properties (already m</description>
      <pubDate>Fri, 04 Aug 2017 15:14:24 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/override-client-side-js/m-p/34318#M14495</guid>
      <dc:creator>binary_101</dc:creator>
      <dc:date>2017-08-04T15:14:24Z</dc:date>
    </item>
    <item>
      <title>Re: Override client side JS</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/override-client-side-js/m-p/34319#M14496</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You shouldn't actually try to override the file - Share supports loading multiple views and you could simply load a custom client side JavaScript file as a separate view mode using clean extension points, without overriding that file.&lt;/P&gt;&lt;P&gt;On the nature of "why this doesn't work with SDK 3.0" though I don't know - I neither use SDK 3.0 nor ever try to override any of the default files. One thing to note though is that when you are using the JAR archetype you should - by default - be producing a JAR artifact. JAR artifacts are not installed into the Share WAR like AMPs are - the file-mapping.properties does not have any effect for them. For JARs, the only way to&amp;nbsp;"override" (not really an override, simply just a trickery played by (potentially unreliable) classpath load order precedence) is by packaging the resource inside the the JAR via src/main/resources.&amp;nbsp;One potential issue I could imagine only affects production use cases, especially if you do not include a minified version of the file - in that case, the minified version of the original WAR would take precedence and your "override" would be ignored.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Aug 2017 21:09:04 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/override-client-side-js/m-p/34319#M14496</guid>
      <dc:creator>afaust</dc:creator>
      <dc:date>2017-08-04T21:09:04Z</dc:date>
    </item>
  </channel>
</rss>

