<?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: cannot customize share with share-config-custom.xml in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/cannot-customize-share-with-share-config-custom-xml/m-p/247212#M200342</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Fantastic, thank you for the help again Jordi!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 27 Mar 2012 15:55:26 GMT</pubDate>
    <dc:creator>jackjm</dc:creator>
    <dc:date>2012-03-27T15:55:26Z</dc:date>
    <item>
      <title>cannot customize share with share-config-custom.xml</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/cannot-customize-share-with-share-config-custom-xml/m-p/247210#M200340</link>
      <description>Hello alli wanted to customize the metadata displayed for an articles in the library to show the name of the author instead of the 'modified by' field. Here is what I put into share-config-custom.xml&amp;lt;config evaluator="string-compare" condition="DocumentLibrary"&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;metadata-templates&amp;amp;g</description>
      <pubDate>Thu, 22 Mar 2012 18:02:32 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/cannot-customize-share-with-share-config-custom-xml/m-p/247210#M200340</guid>
      <dc:creator>jackjm</dc:creator>
      <dc:date>2012-03-22T18:02:32Z</dc:date>
    </item>
    <item>
      <title>Re: cannot customize share with share-config-custom.xml</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/cannot-customize-share-with-share-config-custom-xml/m-p/247211#M200341</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;I'm also a newbie with this, and I'm learning how to do this things at the moment, so maybe my response is not very accurate.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;1) If I were to add some text to indicate the field, say: Author: ${author}, then it is displayed in the reverse order as- 'XYZName Author: ' Suggestions on why this is happenning.&lt;/BLOCKQUOTE&gt;&lt;SPAN&gt;The syntax for doing that is:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&amp;lt;line index="10" id="author"&amp;gt;{my:author label.my_author}&amp;lt;/line&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;BLOCKQUOTE class="jive-quote"&gt;2) say I wanted this line to be not displayed at all if the author name is blank; how would I go about doing it? From MikeH's blog post, I realize I might need to write a custom evaluator to make this happen; but my knowledge ends there; are there any working sequence of steps that I can first try and build upon&lt;/BLOCKQUOTE&gt;&lt;SPAN&gt;You are right, you need a custom evaluator for that. So your code would look like:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&amp;lt;line index="10" id="author" evaluator="evaluator.doclib.metadata.hasAuthor"&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {my:author label.my_author}&lt;BR /&gt;&amp;lt;/line&amp;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;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt;If I'm not mistaken, you define your custom evaluators in &lt;/SPAN&gt;&lt;EM&gt;custom-slingshot-application-context.xml&lt;/EM&gt;&lt;SPAN&gt; located at &lt;/SPAN&gt;&lt;EM&gt;tomcat/shared/classes/alfresco/web-extension/&lt;/EM&gt;&lt;SPAN&gt;. There are some &lt;/SPAN&gt;&lt;A href="http://docs.alfresco.com/4.0/index.jsp?topic=%2Fcom.alfresco.enterprise.doc%2Fconcepts%2FEXIF-renderer-source-code.html" rel="nofollow noopener noreferrer"&gt;predefined evaluators&lt;/A&gt;&lt;SPAN&gt; you can use as parent for your custom evaluator. In your case you could use the &lt;/SPAN&gt;&lt;EM&gt;evaluator.doclib.action.propertyNotNull&lt;/EM&gt;&lt;SPAN&gt; evaluator.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;So your custom evaluator would be something similar to:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;bean id="evaluator.doclib.metadata.hasAuthor" parent="evaluator.doclib.action.propertyNotNull"&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;property name="property"&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;value&amp;gt;my:author&amp;lt;/value&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/property&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/bean&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;BLOCKQUOTE class="jive-quote"&gt;3) Is it possible to have different meta-data displayed for spaces and content? If possible, any guidance will be greatly appreciated.&lt;/BLOCKQUOTE&gt;&lt;SPAN&gt;I think that is possible using evaluators. For example you have the &lt;/SPAN&gt;&lt;EM&gt;evaluator.doclib.action.nodeType&lt;/EM&gt;&lt;SPAN&gt; evaluator that will display the metadata only if the node matches a certain node type.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Jordi&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Mar 2012 16:25:55 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/cannot-customize-share-with-share-config-custom-xml/m-p/247211#M200341</guid>
      <dc:creator>jordiv</dc:creator>
      <dc:date>2012-03-23T16:25:55Z</dc:date>
    </item>
    <item>
      <title>Re: cannot customize share with share-config-custom.xml</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/cannot-customize-share-with-share-config-custom-xml/m-p/247212#M200342</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Fantastic, thank you for the help again Jordi!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Mar 2012 15:55:26 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/cannot-customize-share-with-share-config-custom-xml/m-p/247212#M200342</guid>
      <dc:creator>jackjm</dc:creator>
      <dc:date>2012-03-27T15:55:26Z</dc:date>
    </item>
  </channel>
</rss>

