<?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 Displaying custom metadata in Alfresco in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/displaying-custom-metadata-in-alfresco/m-p/292023#M245153</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;Using the help provided by the people on this forum, I was able to add custom aspects to documents in order to set custom properties.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The next step for me would be to have a local instance of Alfresco displaying the custom properties and having them editable so that users can change their values via the web pages.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;There's a good link on wiki.alfresco &amp;lt;a&amp;gt;&lt;/SPAN&gt;&lt;A href="http://wiki.alfresco.com/wiki/Displaying_Custom_Metadata" rel="nofollow noopener noreferrer"&gt;http://wiki.alfresco.com/wiki/Displaying_Custom_Metadata&lt;/A&gt;&lt;SPAN&gt;&amp;lt;/a&amp;gt; that describes just that and I followed the instructions, but it's not working for me.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In short, I added a custom aspect called my:customAspect like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;AlfrescoDocument alfDoc = … // get existing document&lt;BR /&gt;alfDoc.addAspect("P:my:customAspect");&lt;BR /&gt;&lt;BR /&gt;// set additional properties&lt;BR /&gt;Map&amp;lt;String, Object&amp;gt; propertiesEnum = new HashMap&amp;lt;String, Object&amp;gt;();&lt;BR /&gt;properties.put("my:score", 152);&lt;BR /&gt;…&lt;BR /&gt;alfDoc.updateProperties(updateProperties);&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;/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;The properties were correctly added and I can see their values either programatically or by using Apache Chemistry Workbench desktop client.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In order to have the additional properties visible in Alfresco Web client, I updated the web-client-config-custom.xml file by setting:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;config evaluator="aspect-name" condition="my:customAspect"&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;property-sheet&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;show-property name="my:score"/&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/property-sheet&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &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;/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;Unfortunately, I can't see this property listed in the Alfresco web (including the /share one) for the documents on whom I added the custom aspect.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Maybe I'm missing something, maybe there are some other xml files that should be updated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any help appreciated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 25 Jun 2013 12:44:55 GMT</pubDate>
    <dc:creator>horia</dc:creator>
    <dc:date>2013-06-25T12:44:55Z</dc:date>
    <item>
      <title>Displaying custom metadata in Alfresco</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/displaying-custom-metadata-in-alfresco/m-p/292023#M245153</link>
      <description>Hi,Using the help provided by the people on this forum, I was able to add custom aspects to documents in order to set custom properties.The next step for me would be to have a local instance of Alfresco displaying the custom properties and having them editable so that users can change their values v</description>
      <pubDate>Tue, 25 Jun 2013 12:44:55 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/displaying-custom-metadata-in-alfresco/m-p/292023#M245153</guid>
      <dc:creator>horia</dc:creator>
      <dc:date>2013-06-25T12:44:55Z</dc:date>
    </item>
    <item>
      <title>Re: Displaying custom metadata in Alfresco</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/displaying-custom-metadata-in-alfresco/m-p/292024#M245154</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The web-client-config-custom.xml file is for the old /alfresco web client, not for /share. Take a look at &amp;lt;a href="&lt;/SPAN&gt;&lt;A href="http://ecmarchitect.com/archives/2012/01/09/1509" rel="nofollow noopener noreferrer"&gt;http://ecmarchitect.com/archives/2012/01/09/1509&lt;/A&gt;&lt;SPAN&gt;"&amp;gt;this tutorial&amp;lt;/a&amp;gt; to learn how to configure both /alfresco and /share to show custom metadata. It also includes some CMIS examples you might find helpful.&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, 25 Jun 2013 23:27:01 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/displaying-custom-metadata-in-alfresco/m-p/292024#M245154</guid>
      <dc:creator>jpotts</dc:creator>
      <dc:date>2013-06-25T23:27:01Z</dc:date>
    </item>
    <item>
      <title>Re: Displaying custom metadata in Alfresco</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/displaying-custom-metadata-in-alfresco/m-p/292025#M245155</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;That tutorial is indeed what I was looking for, thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Jun 2013 13:49:27 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/displaying-custom-metadata-in-alfresco/m-p/292025#M245155</guid>
      <dc:creator>horia</dc:creator>
      <dc:date>2013-06-26T13:49:27Z</dc:date>
    </item>
  </channel>
</rss>

