<?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 Custom share datalists in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/custom-share-datalists/m-p/257674#M210804</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;Just a post to explain my experiences, as I can tell other newbies have struggled with creating custom data lists. Well, maybe it's just me, but then I'm posting this for my own future reference &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I wanted to create a custom datalist. Google told me to go to&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://ecmarchitect.com/archives/2010/04/25/1156" rel="nofollow noopener noreferrer"&gt;http://ecmarchitect.com/archives/2010/04/25/1156&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In my experience, if you're using Alfresco 3.4, that example will probably not work very well - it seems to reference templates (eg. row-new.ftl)&amp;nbsp; that are no longer found in 3.4. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I had more luck with the following sample&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://code.google.com/p/share-extras/downloads/detail?name=share-sample-datalists-0.1.jar&amp;amp;can=2&amp;amp;q=" rel="nofollow noopener noreferrer"&gt;http://code.google.com/p/share-extras/downloads/detail?name=share-sample-datalists-0.1.jar&amp;amp;can=2&amp;amp;q=&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://code.google.com/p/share-extras/wiki/DataLists" rel="nofollow noopener noreferrer"&gt;http://code.google.com/p/share-extras/wiki/DataLists&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However, I had to tweak tomcat configuration a little, to have it pick up jar files from tomcat/shared/lib. I used the instructions given here:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://wiki.alfresco.com/wiki/Install_Tomcat6" rel="nofollow noopener noreferrer"&gt;http://wiki.alfresco.com/wiki/Install_Tomcat6&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I really just executed step 4, namely &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"Change the value of shared.loader= to the following:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;shared.loader=${catalina.base}/shared/classes,${catalina.base}/shared/lib/*.jar"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Part of my troubles were figuring out how to deploy the data list (as I said, I'm new at this &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; ). I think this is due to the necessity of making both the repository (alfresco.war) aware of the model, and to let the Share UI (share.war) know how to display it. I think that deploying the above as a jar file and use tomcat's shared/lib folder is a nice solution, as it eliminates the need for both deploying an amp file (with the model) and a jar file (for customizing Share UI) to 2 different applications running under tomcat.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However, this won't work if you have separate tomcat installations for running the repository (alfresco.war) and Share UI (share.war). Any thoughts on this topic are appreciated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope this helps someone.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards, Søren&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 26 Apr 2011 13:23:00 GMT</pubDate>
    <dc:creator>eddie</dc:creator>
    <dc:date>2011-04-26T13:23:00Z</dc:date>
    <item>
      <title>Custom share datalists</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/custom-share-datalists/m-p/257674#M210804</link>
      <description>Hi, Just a post to explain my experiences, as I can tell other newbies have struggled with creating custom data lists. Well, maybe it's just me, but then I'm posting this for my own future reference :-)I wanted to create a custom datalist. Google told me to go to http://ecmarchitect.com/archives/201</description>
      <pubDate>Tue, 26 Apr 2011 13:23:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/custom-share-datalists/m-p/257674#M210804</guid>
      <dc:creator>eddie</dc:creator>
      <dc:date>2011-04-26T13:23:00Z</dc:date>
    </item>
    <item>
      <title>Re: Custom share datalists</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/custom-share-datalists/m-p/257675#M210805</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I know this is an old thread…&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you get a chance, please let me know specifically what doesn't work in that ecmarchitect.com data list example. The code provided does not include any FTL files so it is a bit puzzling why it didn't work for you.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In any case, Share Extras is a great resource, so glad you found that.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I would say that AMPs are the standard we are trying to get people to use for deploying customizations. As you point out, deploying using a single JAR only works when you are running Alfresco and Share in the same container and it does not work for all types of customizations.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The step you mentioned about having to configure the shared classloader is something that is commonly done for all Alfresco implementations and is not related specifically to data lists. Many people use the Shared class loader to store server-specific configuration files and alfresco-global.properties.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for sharing your experience and welcome to the community!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jeff&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Feb 2012 21:51:12 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/custom-share-datalists/m-p/257675#M210805</guid>
      <dc:creator>jpotts</dc:creator>
      <dc:date>2012-02-15T21:51:12Z</dc:date>
    </item>
    <item>
      <title>Re: Custom share datalists</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/custom-share-datalists/m-p/257676#M210806</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Jeff&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Found this post when I was having the same issue. The download code from ecmarchitect.com does not contain a file row-new.ftl and row-edit.ftl which are referenced in the file fdk-common-custom.xml as the templates for the forms for adding and editing a row. replacing these references with &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&amp;lt;create-form template="/org/alfresco/components/data-lists/forms/dataitem.ftl" /&amp;gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;and&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&amp;lt;edit-form template="/org/alfresco/components/data-lists/forms/dataitem.ftl" /&amp;gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;respectively solves the issue (or at least is does in 4.0a)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Bob&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 May 2012 11:51:51 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/custom-share-datalists/m-p/257676#M210806</guid>
      <dc:creator>rjohnson</dc:creator>
      <dc:date>2012-05-24T11:51:51Z</dc:date>
    </item>
  </channel>
</rss>

