<?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: Overriding Share in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/overriding-share/m-p/272970#M226100</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Jeff&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have the same problem. Could you please tell me, where do I have to put that custom client side javascript (search.js) when using the maven all-in-one archetype? &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, 14 May 2014 13:35:27 GMT</pubDate>
    <dc:creator>chrisstoph</dc:creator>
    <dc:date>2014-05-14T13:35:27Z</dc:date>
    <item>
      <title>Overriding Share</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/overriding-share/m-p/272968#M226098</link>
      <description>Hi there,,,I get trouble extending my alfresco share and i really need your help&amp;nbsp;&amp;nbsp; &lt;IMG id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://migration33.stage.lithium.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt; . My question is how can I override file "search.js" in folder [tomcat-instalation]\webapps\share\components\search"?Let me clear my question. When we need to override web script we just need to put our code in "ex</description>
      <pubDate>Fri, 16 Sep 2011 07:45:14 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/overriding-share/m-p/272968#M226098</guid>
      <dc:creator>nunut</dc:creator>
      <dc:date>2011-09-16T07:45:14Z</dc:date>
    </item>
    <item>
      <title>Re: Overriding Share</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/overriding-share/m-p/272969#M226099</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;In this case, you aren't talking about a web script. The file, search.js, is client-side JavaScript, not server-side JavaScript. If you want to extend it, you really need to create your own client-side JavaScript file and then override the "head" web script for the component that will be dependent on your new file to add it as a dependency using the @script tag.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Then, in your version of the client-side JavaScript file, use YAHOO.extend to sub-class the client-side component to make it do what you want.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;There's a simple example of this in the &lt;/SPAN&gt;&lt;A href="http://ecmarchitect.com/images/articles/alfresco-actions/actions-article-2ed.pdf" rel="nofollow noopener noreferrer"&gt;custom actions tutorial&lt;/A&gt;&lt;SPAN&gt; where I extend the client-side Alfresco.RuleConfigAction component with my own. You should be able to use that as an example to do something similar.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jeff&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Mar 2012 20:34:49 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/overriding-share/m-p/272969#M226099</guid>
      <dc:creator>jpotts</dc:creator>
      <dc:date>2012-03-20T20:34:49Z</dc:date>
    </item>
    <item>
      <title>Re: Overriding Share</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/overriding-share/m-p/272970#M226100</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Jeff&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have the same problem. Could you please tell me, where do I have to put that custom client side javascript (search.js) when using the maven all-in-one archetype? &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, 14 May 2014 13:35:27 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/overriding-share/m-p/272970#M226100</guid>
      <dc:creator>chrisstoph</dc:creator>
      <dc:date>2014-05-14T13:35:27Z</dc:date>
    </item>
    <item>
      <title>Re: Overriding Share</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/overriding-share/m-p/272971#M226101</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;&amp;lt;CODE&amp;gt;$project/src/main/amp/components/search/search.js&amp;lt;/CODE&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This will override default Alfresco JS, but maybe it's a better choice to extend and override one single method.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 May 2014 14:08:13 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/overriding-share/m-p/272971#M226101</guid>
      <dc:creator>angelborroy</dc:creator>
      <dc:date>2014-05-14T14:08:13Z</dc:date>
    </item>
    <item>
      <title>Re: Overriding Share</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/overriding-share/m-p/272972#M226102</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Angel&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for the answer. I created a search_custom.js file, where I override the neccessary functions. But unfortunately it does not make any sense, if I copy the search_custom.js file in the folder, which you proposed. Share does not recognise it. Anyway, after maven build, it's generated in $project\amp\target\amp\components\search\, however I think it should be in $project\share\target\share\components\search&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;What do I do wrong?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 May 2014 08:05:24 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/overriding-share/m-p/272972#M226102</guid>
      <dc:creator>chrisstoph</dc:creator>
      <dc:date>2014-05-15T08:05:24Z</dc:date>
    </item>
    <item>
      <title>Re: Overriding Share</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/overriding-share/m-p/272973#M226103</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Have you included your new JS file on &amp;lt;CODE&amp;gt;search.get.html.ftl&amp;lt;/CODE&amp;gt; as Jeff pointed?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;javascript&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;@markup id="js"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; &amp;lt;#– JavaScript Dependencies –&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; &amp;lt;@script src="${url.context}/res/components/search/search-lib.js" group="search"/&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; &amp;lt;@script src="${url.context}/res/components/search/search.js" group="search"/&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; &amp;lt;@script src="${url.context}/res/components/search/search_custom.js" group="search"/&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/@&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/javascript&amp;gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 May 2014 08:20:21 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/overriding-share/m-p/272973#M226103</guid>
      <dc:creator>angelborroy</dc:creator>
      <dc:date>2014-05-15T08:20:21Z</dc:date>
    </item>
    <item>
      <title>Re: Overriding Share</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/overriding-share/m-p/272974#M226104</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yes, I did. But the search_custom.js is not present at all, if I browse the scripts with FireBug on the Search site.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 May 2014 08:53:56 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/overriding-share/m-p/272974#M226104</guid>
      <dc:creator>chrisstoph</dc:creator>
      <dc:date>2014-05-15T08:53:56Z</dc:date>
    </item>
    <item>
      <title>Re: Overriding Share</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/overriding-share/m-p/272975#M226105</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Can you open AMP generated (it's a ZIP file) and verify &amp;lt;CODE&amp;gt;search_custom.js&amp;lt;/CODE&amp;gt; path?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It should be at &amp;lt;CODE&amp;gt;components/search/search_custom.js&amp;lt;/CODE&amp;gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 May 2014 11:04:38 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/overriding-share/m-p/272975#M226105</guid>
      <dc:creator>angelborroy</dc:creator>
      <dc:date>2014-05-15T11:04:38Z</dc:date>
    </item>
    <item>
      <title>Re: Overriding Share</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/overriding-share/m-p/272976#M226106</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Angel,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have the need to override the renderCellDescription function of Alfresco.Search.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;My question is really about how to override that function. I am not very familiar with the YAHOO api. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I was able to override just the function that I need in DocumentList, as follow:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;(function()&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;//Enable/disable (local) debug mode&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;var debug_mode = false;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; /**&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; * YUI Library aliases&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; var Dom = YAHOO.util.Dom, Event = YAHOO.util.Event;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; /**&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; * Alfresco Slingshot aliases&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; */&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; var $html = Alfresco.util.encodeHTML,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $isValueSet = Alfresco.util.isValueSet;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;Alfresco.DocumentListViewRenderer.prototype.renderCellDescription = function DL_VR_renderCellDescription(scope, elCell, oRecord, oColumn, oData){&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; …..&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; };&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;})();&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This works fine for DocumentLibary, however AlfrescoSearch seem to be a bit different. The "renderCellDescription" function is defined inside the "Search_setupDataTable". How do i override it? Do I have to override the "Search_setupDataTable"? Or is there a way to override just the "renderCellDescription"?&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Apr 2015 14:05:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/overriding-share/m-p/272976#M226106</guid>
      <dc:creator>anotheralfresco</dc:creator>
      <dc:date>2015-04-09T14:05:00Z</dc:date>
    </item>
    <item>
      <title>Re: Overriding Share</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/overriding-share/m-p/272977#M226107</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You have to override the whole _setupDataTable function in AlfrescoSearch component. In my opinion, there is no easy way to override just renderCellDescription function.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Apr 2015 07:33:06 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/overriding-share/m-p/272977#M226107</guid>
      <dc:creator>angelborroy</dc:creator>
      <dc:date>2015-04-20T07:33:06Z</dc:date>
    </item>
    <item>
      <title>Re: Overriding Share</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/overriding-share/m-p/272978#M226108</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Angel,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I have similar kind of problem. To make some changes in the Search result page I need to extend the existing AlfSearchResult.js file which is used as a widget in the Faceted-search.js. I need to customize the faceted page . I have tried extending the widget by going through the following tutorial &lt;/SPAN&gt;&lt;A href="http://docs.alfresco.com/4.2/tasks/dev-extensions-share-tutorials-customizing-widget-instantiation.html" rel="nofollow noopener noreferrer"&gt;http://docs.alfresco.com/4.2/tasks/dev-extensions-share-tutorials-customizing-widget-instantiation.html&lt;/A&gt;&lt;SPAN&gt; but couldn't succeed.I'll be thankful if you help me out finding the solution.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in Advange.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Anooj&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Jun 2015 06:47:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/overriding-share/m-p/272978#M226108</guid>
      <dc:creator>anooj_agarwal</dc:creator>
      <dc:date>2015-06-15T06:47:00Z</dc:date>
    </item>
  </channel>
</rss>

