<?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: Customizing document library views: table.effectivity in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/customizing-document-library-views-table-effectivity/m-p/301781#M254911</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;Alfresco allows for multi-language support by allowing different message bundles to be packaged with the system and using ids to allow the correct label to retrieved from whatever bundle is being used.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In your case with "label": "table.effectivity.label.from", this value is actually a message id that will be retrieved from the currently loaded language bundle for the current user&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; (as defined by their browser locale settings).&amp;nbsp; To make things not break, if Alfresco doesn't find a value for this message id in the bundle, it will display the message id as the message string (so you'll see "table.effectivity.label.from" on the screen).&amp;nbsp; This allows you, if you wish to use an actual value (e.g. "Effective From") as the label value but this is bad practice as you're hard coding to a single language.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;To add in a properly localised string, you just need to add your key and your value to a messages property file. This is basically a small text file in the Java properties style, e.g.&amp;nbsp; my-ext.properties&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;table.effectivity.label.from=Effective From&lt;BR /&gt;table.effectivity.label.to=Effective To&lt;BR /&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;SPAN&gt;You can then include language variants by creating copies of the file with the relevant locale in the name, e.g. my-ext_de.properties, my-ext-messages_fr.properties, my-ext_ru.properties etc.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Lastly, you need to let the application know about your resource bundle using a Spring Bean:&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="my-ext.resources"&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; class="org.springframework.extensions.surf.util.ResourceBundleBootstrapComponent"&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;property name="resourceBundles"&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;list&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;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;value&amp;gt;alfresco.web-extension.messages.my-ext&amp;lt;/value&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;/list&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;/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;If you're using the Alfresco SDK to create an AMP file for your Share customisations, then you'll get all this done for you, in the src/main/amp/config/alfresco/web-extension/messages/ folder of your project.&amp;nbsp; All you'll need to do is add the properties to the file it creates for you.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Steven&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 22 Jun 2016 09:49:35 GMT</pubDate>
    <dc:creator>steven_okennedy</dc:creator>
    <dc:date>2016-06-22T09:49:35Z</dc:date>
    <item>
      <title>Customizing document library views: table.effectivity</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/customizing-document-library-views-table-effectivity/m-p/301780#M254910</link>
      <description>Hi,I'm new on Alfresco development and just started with a little customization project.I want to add more column headers on table view of document library page.They are effectivity date information.Editing share-documentlibrary-config.xml I can add more columns by adding these lines into table's vi</description>
      <pubDate>Tue, 21 Jun 2016 22:56:59 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/customizing-document-library-views-table-effectivity/m-p/301780#M254910</guid>
      <dc:creator>billydekid</dc:creator>
      <dc:date>2016-06-21T22:56:59Z</dc:date>
    </item>
    <item>
      <title>Re: Customizing document library views: table.effectivity</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/customizing-document-library-views-table-effectivity/m-p/301781#M254911</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;Alfresco allows for multi-language support by allowing different message bundles to be packaged with the system and using ids to allow the correct label to retrieved from whatever bundle is being used.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In your case with "label": "table.effectivity.label.from", this value is actually a message id that will be retrieved from the currently loaded language bundle for the current user&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; (as defined by their browser locale settings).&amp;nbsp; To make things not break, if Alfresco doesn't find a value for this message id in the bundle, it will display the message id as the message string (so you'll see "table.effectivity.label.from" on the screen).&amp;nbsp; This allows you, if you wish to use an actual value (e.g. "Effective From") as the label value but this is bad practice as you're hard coding to a single language.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;To add in a properly localised string, you just need to add your key and your value to a messages property file. This is basically a small text file in the Java properties style, e.g.&amp;nbsp; my-ext.properties&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;table.effectivity.label.from=Effective From&lt;BR /&gt;table.effectivity.label.to=Effective To&lt;BR /&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;SPAN&gt;You can then include language variants by creating copies of the file with the relevant locale in the name, e.g. my-ext_de.properties, my-ext-messages_fr.properties, my-ext_ru.properties etc.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Lastly, you need to let the application know about your resource bundle using a Spring Bean:&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="my-ext.resources"&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; class="org.springframework.extensions.surf.util.ResourceBundleBootstrapComponent"&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;property name="resourceBundles"&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;list&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;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;value&amp;gt;alfresco.web-extension.messages.my-ext&amp;lt;/value&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;/list&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;/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;If you're using the Alfresco SDK to create an AMP file for your Share customisations, then you'll get all this done for you, in the src/main/amp/config/alfresco/web-extension/messages/ folder of your project.&amp;nbsp; All you'll need to do is add the properties to the file it creates for you.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Steven&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jun 2016 09:49:35 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/customizing-document-library-views-table-effectivity/m-p/301781#M254911</guid>
      <dc:creator>steven_okennedy</dc:creator>
      <dc:date>2016-06-22T09:49:35Z</dc:date>
    </item>
    <item>
      <title>Re: Customizing document library views: table.effectivity</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/customizing-document-library-views-table-effectivity/m-p/301782#M254912</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;For the existing codes (running version), where is the file defined actually?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If so, then we could edit it normally and without build any Java code.&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jun 2016 21:22:49 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/customizing-document-library-views-table-effectivity/m-p/301782#M254912</guid>
      <dc:creator>billydekid</dc:creator>
      <dc:date>2016-06-22T21:22:49Z</dc:date>
    </item>
    <item>
      <title>Re: Customizing document library views: table.effectivity</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/customizing-document-library-views-table-effectivity/m-p/301783#M254913</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;Editing the out of the box files direclty is likely to lead you into trouble, the time you save now by changing files directly usually gets paid back a number of times over when you do things like apply updates, migrate from one environment to another, redeploy your war files or just make a mistake and try to revert backwards.&amp;nbsp; The Alfresco SDK does almost all the heavy lifting for you these days, so if as you say you're starting a customisation project then it saves time to do it cleanly.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Alfresco is an extensible platform because it gives you a wide variety of extension points and ways to change the product, not because its possible to modify the war files.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you want to know where the values are coming from in any case, this particular set of values is bundled with the document-list-v2 webscript at share\WEB-INF\classes\alfresco\site-webscripts\org\alfresco\components\documentlibrary\documentlist-v2.get.properties, but again I would not advise changing it - you'll see that recommendation all over the forums as well as in the documentation&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Steven&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jun 2016 22:25:26 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/customizing-document-library-views-table-effectivity/m-p/301783#M254913</guid>
      <dc:creator>steven_okennedy</dc:creator>
      <dc:date>2016-06-22T22:25:26Z</dc:date>
    </item>
  </channel>
</rss>

