<?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: Where to put custom view-render in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/where-to-put-custom-view-render/m-p/299352#M252482</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;no,no, of course the default &lt;/SPAN&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt; tomcat/shared/classes/alfresco/web-extension/share-config-custom.xml&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; does exist &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I am speaking of tomcat/webapps/share blabla&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Even so If I put my piece of config into that file, I do not see my new renderer. So my main problem is:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; which is the correct syntax to have a config with a new instance of a renderer?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;my Alfresco configuration:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I've installed alfresco42e community, I have two tomcats, one for Alfresco (port 9080) and one for Share(port 19080) then I use Apache ProxyPass and ProxyPassReverse so I can use an URL without &lt;img id="smileytongue" class="emoticon emoticon-smileytongue" src="https://connect.hyland.com/i/smilies/16x16_smiley-tongue.png" alt="Smiley Tongue" title="Smiley Tongue" /&gt;ort&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 12 Feb 2014 10:29:51 GMT</pubDate>
    <dc:creator>riccardog</dc:creator>
    <dc:date>2014-02-12T10:29:51Z</dc:date>
    <item>
      <title>Where to put custom view-render</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/where-to-put-custom-view-render/m-p/299346#M252476</link>
      <description>Hi,my goal, today, is:&amp;nbsp; to make my own&amp;nbsp; custom Documentlibrary View and deploy it be an AMP.I&amp;nbsp; begun reading the documentationhttp://docs.alfresco.com/4.2/index.jsp?topic=%2Fcom.alfresco.enterprise.doc%2Fconcepts%2Fdoclib-web-tier.htmlandhttp://docs.alfresco.com/4.2/index.jsp?topic=%2Fcom.alfresco.e</description>
      <pubDate>Fri, 07 Feb 2014 15:48:50 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/where-to-put-custom-view-render/m-p/299346#M252476</guid>
      <dc:creator>riccardog</dc:creator>
      <dc:date>2014-02-07T15:48:50Z</dc:date>
    </item>
    <item>
      <title>Re: Where to put custom view-render</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/where-to-put-custom-view-render/m-p/299347#M252477</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;Did you try to add your custom view renderer in amp/config/alfresco/web-extension/share-config-custom.xml ?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Feb 2014 11:47:08 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/where-to-put-custom-view-render/m-p/299347#M252477</guid>
      <dc:creator>tonyrivet</dc:creator>
      <dc:date>2014-02-11T11:47:08Z</dc:date>
    </item>
    <item>
      <title>Re: Where to put custom view-render</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/where-to-put-custom-view-render/m-p/299348#M252478</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Tony,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;if I put a share-config-custom.xml in&amp;nbsp; amp/config/alfresco/web-extension/&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;then the whole share stops working.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Even if my file contains&amp;nbsp; "nothing", like&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;alfresco-config&amp;gt;&lt;BR /&gt; &amp;lt;config evaluator="string-compare" condition="DocumentLibrary" &amp;gt;&lt;BR /&gt; &amp;lt;/config&amp;gt;&lt;BR /&gt;&amp;lt;/alfresco-config&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;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;I get lots of odd&amp;nbsp; errors, for example:&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;cite&amp;gt;Unable to retrieve License information from Alfresco: 404&amp;lt;/cite&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;or&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;cite&amp;gt;Failed during processing of Google Docs subsystem status configuration from Alfresco: 01110000 Unable to retrieve Google Docs subsystem status from Alfresco: 404&amp;lt;/cite&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; I think that this&amp;nbsp; share-config-custom.xml overrides totally the standard share config.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;–&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;RIc&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Feb 2014 15:52:30 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/where-to-put-custom-view-render/m-p/299348#M252478</guid>
      <dc:creator>riccardog</dc:creator>
      <dc:date>2014-02-11T15:52:30Z</dc:date>
    </item>
    <item>
      <title>Re: Where to put custom view-render</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/where-to-put-custom-view-render/m-p/299349#M252479</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;As long as you don't put the replace="true" attribute in your config, Share will not override the native config but just extend it, so I think it should work.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Your errors let think Share can't reach the Alfresco Repo.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;On which kind of Alfresco are you deploying your AMP ? Is it already customized (i.e. is there a chance your share-config-custom.xml overrides an existing one) ?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Feb 2014 16:16:31 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/where-to-put-custom-view-render/m-p/299349#M252479</guid>
      <dc:creator>tonyrivet</dc:creator>
      <dc:date>2014-02-11T16:16:31Z</dc:date>
    </item>
    <item>
      <title>Re: Where to put custom view-render</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/where-to-put-custom-view-render/m-p/299350#M252480</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I Have a few other AMPs in the same Alfresco, each one containing some -context and -config files,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;but all my config-custom files are named other than&amp;nbsp; share-config-custom.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I mean, into&amp;nbsp; WEB-INF/classes/alfresco/web-extension there is nothing called share-config-custom.xml not even elsewhere (&lt;/SPAN&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt; find . -name share-config-custom.xml&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; reports nothing else)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Looking into WEB-INF/classes/alfresco/slingshot-application-context.xml, it seems that you can have more then one share-config-custom , so whi mine should totally override the other?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I am a bit puzzled …&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Feb 2014 18:47:31 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/where-to-put-custom-view-render/m-p/299350#M252480</guid>
      <dc:creator>riccardog</dc:creator>
      <dc:date>2014-02-11T18:47:31Z</dc:date>
    </item>
    <item>
      <title>Re: Where to put custom view-render</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/where-to-put-custom-view-render/m-p/299351#M252481</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hm that's weird…&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;There is no share-config-custom in your tomcat/shared/classes/alfresco/web-extension directory neither ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;By the way, did you try to put your share-config-custom in your tomcat/shared/classes/alfresco/web-extension directory ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Are both your Alfreso and Share instances running locally (or at least in the same server) on the 8080 port ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Feb 2014 08:14:01 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/where-to-put-custom-view-render/m-p/299351#M252481</guid>
      <dc:creator>tonyrivet</dc:creator>
      <dc:date>2014-02-12T08:14:01Z</dc:date>
    </item>
    <item>
      <title>Re: Where to put custom view-render</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/where-to-put-custom-view-render/m-p/299352#M252482</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;no,no, of course the default &lt;/SPAN&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt; tomcat/shared/classes/alfresco/web-extension/share-config-custom.xml&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; does exist &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I am speaking of tomcat/webapps/share blabla&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Even so If I put my piece of config into that file, I do not see my new renderer. So my main problem is:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; which is the correct syntax to have a config with a new instance of a renderer?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;my Alfresco configuration:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I've installed alfresco42e community, I have two tomcats, one for Alfresco (port 9080) and one for Share(port 19080) then I use Apache ProxyPass and ProxyPassReverse so I can use an URL without &lt;img id="smileytongue" class="emoticon emoticon-smileytongue" src="https://connect.hyland.com/i/smilies/16x16_smiley-tongue.png" alt="Smiley Tongue" title="Smiley Tongue" /&gt;ort&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Feb 2014 10:29:51 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/where-to-put-custom-view-render/m-p/299352#M252482</guid>
      <dc:creator>riccardog</dc:creator>
      <dc:date>2014-02-12T10:29:51Z</dc:date>
    </item>
    <item>
      <title>Re: Where to put custom view-render</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/where-to-put-custom-view-render/m-p/299353#M252483</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Sorry it was not so obvious you already had a share-config-custom configured.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;That explains the errors when you put your share-config-custom in the amp/config/alfresco/web-extension directory.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Concerning the view renderers configuration, I thought Share would merge your configuration with the native one but it seems not.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Maybe this merging is only done for one or two levels deep configuration (like the actions configuration for example), whereas the view renderers are set in a three levels deep configuration :&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;&amp;lt;doclist&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;lt;view-renderers&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;view-renderer&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;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Adding the replace="true" attribute in your config should work. You'll have to copy the default view renderer configurations you want to keep.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;&amp;lt;config evaluator="string-compare" condition="DocumentLibrary" replace="true"&amp;gt;&lt;BR /&gt;…&lt;BR /&gt;&amp;lt;/config&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;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Feb 2014 13:08:21 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/where-to-put-custom-view-render/m-p/299353#M252483</guid>
      <dc:creator>tonyrivet</dc:creator>
      <dc:date>2014-02-12T13:08:21Z</dc:date>
    </item>
  </channel>
</rss>

