<?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: Set folder icon/thumbnail with image reside in repository in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/set-folder-icon-thumbnail-with-image-reside-in-repository/m-p/287914#M241044</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm using Alfresco 4.0, I'm assuming 4.2 is similar.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Well if you already know how to change the image by client side javascript and the only thing you need is a way to refer to the thumbnail that is not inside the web deployment but the repository itself I ssugest you give a look to the thumbnail REST API that Share itself is using.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you inspect the HTML that share creates to show the thumbnail of an image in the document browsing view you'll see something like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;&amp;lt;img id="workspace://SpacesStore/1fd7537e-bda4-4d08-94e7-592de27e3b35" src="&lt;A href="http://localhost:8080/share/proxy/alfresco/api/node/workspace/SpacesStore/AAAAAAAA-BBBB-CCCC-DDDD-ABASDF34234/content/thumbnails/doclib?c=queue&amp;amp;ph=true" rel="nofollow noopener noreferrer"&gt;http://localhost:8080/share/proxy/alfresco/api/node/workspace/SpacesStore/AAAAAAAA-BBBB-CCCC-DDDD-ABASDF34234/content/thumbnails/doclib?c=queue&amp;amp;ph=true&lt;/A&gt;" alt=".jpg" title="Hydrangeas.jpg"&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;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I think this is referring to this API:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;&lt;A href="http://localhost:8080/alfresco/service/index/uri/api/node/%7Bstore_type%7D/%7Bstore_id%7D/%7Bid%7D/content%7Bproperty%7D/thumbnails/%7Bthumbnailname%7D/%7Bfilename%7D" rel="nofollow noopener noreferrer"&gt;http://localhost:8080/alfresco/service/index/uri/api/node/%7Bstore_type%7D/%7Bstore_id%7D/%7Bid%7D/content%7Bproperty%7D/thumbnails/%7Bthumbnailname%7D/%7Bfilename%7D&lt;/A&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;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you want to manage the thumbnail creation yourself or if you want to directly use and existing image and not its thumbnail I suppose you could just embed in your generated IMG element a URL pointing to the content download URL:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;&lt;A href="http://localhost:8080/share/proxy/alfresco/api/node/content/workspace/SpacesStore/b619888c-0c4e-4c31-9f98-e5c8977c2856/-1194898225" rel="nofollow noopener noreferrer"&gt;http://localhost:8080/share/proxy/alfresco/api/node/content/workspace/SpacesStore/b619888c-0c4e-4c31-9f98-e5c8977c2856/-1194898225&lt;/A&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;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But of course that assumes you now the NodeRef of the image yo want to use. Probably you'll have to copy and customize the thumbnail API so that it searches inside the folder for the proper node.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 11 Mar 2013 14:51:33 GMT</pubDate>
    <dc:creator>iblanco</dc:creator>
    <dc:date>2013-03-11T14:51:33Z</dc:date>
    <item>
      <title>Set folder icon/thumbnail with image reside in repository</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/set-folder-icon-thumbnail-with-image-reside-in-repository/m-p/287913#M241043</link>
      <description>Hi,Im using Alfresco community v4.2 and i want t see this feature only in Alfresco ExplorerI want to change the folder icon to an image. The image should be found inside the repository (for example under Company Home/User Homes/User1/)So everytime an image is uploaded under Company Home/User Homes/U</description>
      <pubDate>Mon, 11 Mar 2013 03:06:39 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/set-folder-icon-thumbnail-with-image-reside-in-repository/m-p/287913#M241043</guid>
      <dc:creator>melttech</dc:creator>
      <dc:date>2013-03-11T03:06:39Z</dc:date>
    </item>
    <item>
      <title>Re: Set folder icon/thumbnail with image reside in repository</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/set-folder-icon-thumbnail-with-image-reside-in-repository/m-p/287914#M241044</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm using Alfresco 4.0, I'm assuming 4.2 is similar.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Well if you already know how to change the image by client side javascript and the only thing you need is a way to refer to the thumbnail that is not inside the web deployment but the repository itself I ssugest you give a look to the thumbnail REST API that Share itself is using.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you inspect the HTML that share creates to show the thumbnail of an image in the document browsing view you'll see something like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;&amp;lt;img id="workspace://SpacesStore/1fd7537e-bda4-4d08-94e7-592de27e3b35" src="&lt;A href="http://localhost:8080/share/proxy/alfresco/api/node/workspace/SpacesStore/AAAAAAAA-BBBB-CCCC-DDDD-ABASDF34234/content/thumbnails/doclib?c=queue&amp;amp;ph=true" rel="nofollow noopener noreferrer"&gt;http://localhost:8080/share/proxy/alfresco/api/node/workspace/SpacesStore/AAAAAAAA-BBBB-CCCC-DDDD-ABASDF34234/content/thumbnails/doclib?c=queue&amp;amp;ph=true&lt;/A&gt;" alt=".jpg" title="Hydrangeas.jpg"&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;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I think this is referring to this API:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;&lt;A href="http://localhost:8080/alfresco/service/index/uri/api/node/%7Bstore_type%7D/%7Bstore_id%7D/%7Bid%7D/content%7Bproperty%7D/thumbnails/%7Bthumbnailname%7D/%7Bfilename%7D" rel="nofollow noopener noreferrer"&gt;http://localhost:8080/alfresco/service/index/uri/api/node/%7Bstore_type%7D/%7Bstore_id%7D/%7Bid%7D/content%7Bproperty%7D/thumbnails/%7Bthumbnailname%7D/%7Bfilename%7D&lt;/A&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;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you want to manage the thumbnail creation yourself or if you want to directly use and existing image and not its thumbnail I suppose you could just embed in your generated IMG element a URL pointing to the content download URL:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;&lt;A href="http://localhost:8080/share/proxy/alfresco/api/node/content/workspace/SpacesStore/b619888c-0c4e-4c31-9f98-e5c8977c2856/-1194898225" rel="nofollow noopener noreferrer"&gt;http://localhost:8080/share/proxy/alfresco/api/node/content/workspace/SpacesStore/b619888c-0c4e-4c31-9f98-e5c8977c2856/-1194898225&lt;/A&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;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But of course that assumes you now the NodeRef of the image yo want to use. Probably you'll have to copy and customize the thumbnail API so that it searches inside the folder for the proper node.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Mar 2013 14:51:33 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/set-folder-icon-thumbnail-with-image-reside-in-repository/m-p/287914#M241044</guid>
      <dc:creator>iblanco</dc:creator>
      <dc:date>2013-03-11T14:51:33Z</dc:date>
    </item>
    <item>
      <title>Re: Set folder icon/thumbnail with image reside in repository</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/set-folder-icon-thumbnail-with-image-reside-in-repository/m-p/287915#M241045</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks iblanco for your reply,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I did try to change Alfresco Explorer browse.jsp. I found that the folder icon for icon view is set here :&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;%– Primary column for icons view mode –%&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;a:column id="col2" primary="true" style="padding:2px;text-align:left;vertical-align:top;" rendered="#{BrowseBean.browseViewMode == 'icons'}"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;f:facet name="large-icon"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;a:actionLink id="col2-act1" value="#{r.name}" image="/images/icons/#{r.icon}.gif" actionListener="#{BrowseBean.clickSpace}" showLink="false"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;f&lt;img id="smileytongue" class="emoticon emoticon-smileytongue" src="https://connect.hyland.com/i/smilies/16x16_smiley-tongue.png" alt="Smiley Tongue" title="Smiley Tongue" /&gt;aram name="id" value="#{r.id}" id="param5" /&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/a:actionLink&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/f:facet&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;a:actionLink id="col2-act2" value="#{r.name}" actionListener="#{BrowseBean.clickSpace}" styleClass="header"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;f&lt;img id="smileytongue" class="emoticon emoticon-smileytongue" src="https://connect.hyland.com/i/smilies/16x16_smiley-tongue.png" alt="Smiley Tongue" title="Smiley Tongue" /&gt;aram name="id" value="#{r.id}" id="param6" /&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/a:actionLink&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;r:nodeInfo id="col2-info" value="#{r.id}"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;h:graphicImage id="col2-img" url="/images/icons/popup.gif" styleClass="popupImage" width="16" height="16" /&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/r:nodeInfo&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/a:column&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;i did try to change it to point to a URL but it doesnt work. Plus, this will change all the icons of cm:folder.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I suppose you are suggesting me to use thumbnail service Api (&lt;/SPAN&gt;&lt;A href="https://wiki.alfresco.com/wiki/Thumbnail_Service" rel="nofollow noopener noreferrer"&gt;https://wiki.alfresco.com/wiki/Thumbnail_Service&lt;/A&gt;&lt;SPAN&gt;) but im not quite familiar with it.Is there something need to be configure and how i can make use of this api to change only a folder icon from javascript?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any idea? If its impossible with javascript, are they any other alternative way to do this (eg: Java). I dont have the global view on how can i do this.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Please enligthen my path &lt;span class="lia-unicode-emoji" title=":grinning_face_with_big_eyes:"&gt;😃&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Mar 2013 06:59:27 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/set-folder-icon-thumbnail-with-image-reside-in-repository/m-p/287915#M241045</guid>
      <dc:creator>melttech</dc:creator>
      <dc:date>2013-03-13T06:59:27Z</dc:date>
    </item>
  </channel>
</rss>

