<?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: Interchanging FileName and Title in documentLibrary in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/interchanging-filename-and-title-in-documentlibrary/m-p/274519#M227649</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;if some one has completed his can you write down some steps please on what to do exactly&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 29 May 2012 13:19:49 GMT</pubDate>
    <dc:creator>sharifu</dc:creator>
    <dc:date>2012-05-29T13:19:49Z</dc:date>
    <item>
      <title>Interchanging FileName and Title in documentLibrary</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/interchanging-filename-and-title-in-documentlibrary/m-p/274517#M227647</link>
      <description>Hi,I have a requirement to interchange the way the Document Name and Title is shown in document library. Basically, the Title needs to be shown first and then the file name. The end user does not care for the actual file name rather title makes more sense to him. This needs to changed in document-li</description>
      <pubDate>Fri, 18 May 2012 19:51:03 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/interchanging-filename-and-title-in-documentlibrary/m-p/274517#M227647</guid>
      <dc:creator>unknown-user</dc:creator>
      <dc:date>2012-05-18T19:51:03Z</dc:date>
    </item>
    <item>
      <title>Re: Interchanging FileName and Title in documentLibrary</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/interchanging-filename-and-title-in-documentlibrary/m-p/274518#M227648</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Given your requirement it probably involves augmenting (YAHOO.lang.augmentObject) the client-side js components involved and selectively overriding only those functions where name/title are displayed (e.g. column rendering function in documentlist.js). There may also be a number of freemarker html templates that need to be changed.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The changes to the code itself should be minor (just swapping the fields), but given the number of changes it is still a significant amount of work.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The best way to package your exension in my opinion would be to package as an amp, and use the Surf extension mechanisms to define your own module(s) and hook up your extensions. It has been much improved of late, allowing you to extend the functionality without too much code duplication.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Another option would be to physically swap the data of Name and Title fields upon creation of a document node. You can do this by hooking up a form filter (class that derives from AbstractFilter&amp;lt;ItemType, PersistType&amp;gt;) and implementing the beforePersist() method where you can do the switch.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;This solution is probably undesirable because it would also change the filename of the document when downloading (though you could write code to handle this). Also if you don't append the filename extension, a generic document icon is shown.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope this helps.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 19 May 2012 08:34:41 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/interchanging-filename-and-title-in-documentlibrary/m-p/274518#M227648</guid>
      <dc:creator>arnoldschrijve1</dc:creator>
      <dc:date>2012-05-19T08:34:41Z</dc:date>
    </item>
    <item>
      <title>Re: Interchanging FileName and Title in documentLibrary</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/interchanging-filename-and-title-in-documentlibrary/m-p/274519#M227649</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;if some one has completed his can you write down some steps please on what to do exactly&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 May 2012 13:19:49 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/interchanging-filename-and-title-in-documentlibrary/m-p/274519#M227649</guid>
      <dc:creator>sharifu</dc:creator>
      <dc:date>2012-05-29T13:19:49Z</dc:date>
    </item>
    <item>
      <title>Re: Interchanging FileName and Title in documentLibrary</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/interchanging-filename-and-title-in-documentlibrary/m-p/274520#M227650</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I had to interchange the fileName and title in Document List, Document Details and Search pages. Following are the methods/files I extended. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;a) For Document List page - Overridden fnRenderCellDescription() of components\documentlibrary\documentlist.js &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;b) For Document Details Page - Since the title and name are rendered in org\alfresco\components\node-details\node-header.get.html.ftl, I had to extend this FTL file using Alfresco's extension mechanism. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;c) For Search - Overridden _setupDataTable() method in components\search\search.js&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I also updated the respective *.get.head.ftl files to include my custom JS files containing the overridden methods. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope this helps.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 May 2012 04:06:50 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/interchanging-filename-and-title-in-documentlibrary/m-p/274520#M227650</guid>
      <dc:creator>unknown-user</dc:creator>
      <dc:date>2012-05-30T04:06:50Z</dc:date>
    </item>
    <item>
      <title>Re: Interchanging FileName and Title in documentLibrary</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/interchanging-filename-and-title-in-documentlibrary/m-p/274521#M227651</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I had to interchange the fileName and title in Document List, Document Details and Search pages. Following are the methods/files I extended. &lt;BR /&gt;&lt;BR /&gt;a) For Document List page - Overridden fnRenderCellDescription() of components\documentlibrary\documentlist.js &lt;BR /&gt;b) For Document Details Page - Since the title and name are rendered in org\alfresco\components\node-details\node-header.get.html.ftl, I had to extend this FTL file using Alfresco's extension mechanism. &lt;BR /&gt;c) For Search - Overridden _setupDataTable() method in components\search\search.js&lt;BR /&gt;&lt;BR /&gt;I also updated the respective *.get.head.ftl files to include my custom JS files containing the overridden methods. &lt;BR /&gt;&lt;BR /&gt;Hope this helps.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; i am a noob. is it possible you can show me the script files?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 May 2012 09:18:18 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/interchanging-filename-and-title-in-documentlibrary/m-p/274521#M227651</guid>
      <dc:creator>sharifu</dc:creator>
      <dc:date>2012-05-30T09:18:18Z</dc:date>
    </item>
  </channel>
</rss>

