<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <title>Asset publisher : list icons should represent document type</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=10116232" />
  <subtitle>Asset publisher : list icons should represent document type</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=10116232</id>
  <updated>2026-04-07T18:56:06Z</updated>
  <dc:date>2026-04-07T18:56:06Z</dc:date>
  <entry>
    <title>RE: Asset publisher : list icons should represent document type</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=10712525" />
    <author>
      <name>Juan Fernández</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=10712525</id>
    <updated>2011-09-08T07:09:49Z</updated>
    <published>2011-09-08T07:09:49Z</published>
    <summary type="html">Hi M Garcia! &lt;br /&gt;I have just added this improvement to trunk, so you can be proud your contribution has made its way to Liferay 6.1! &lt;img alt="emoticon" src="@theme_images_path@/emoticons/happy.gif" &gt;&lt;br /&gt;Now Liferay is a bit more &amp;#34;yours&amp;#34; than before&lt;br /&gt;Thanks a lot for your contribution!&lt;br /&gt;Juan</summary>
    <dc:creator>Juan Fernández</dc:creator>
    <dc:date>2011-09-08T07:09:49Z</dc:date>
  </entry>
  <entry>
    <title>RE: Asset publisher : list icons should represent document type</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=10650711" />
    <author>
      <name>Jorge Ferrer</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=10650711</id>
    <updated>2011-09-02T11:44:34Z</updated>
    <published>2011-09-02T11:44:34Z</published>
    <summary type="html">Thanks!</summary>
    <dc:creator>Jorge Ferrer</dc:creator>
    <dc:date>2011-09-02T11:44:34Z</dc:date>
  </entry>
  <entry>
    <title>RE: Asset publisher : list icons should represent document type</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=10298930" />
    <author>
      <name>M. Garcia</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=10298930</id>
    <updated>2011-08-03T09:41:51Z</updated>
    <published>2011-08-03T09:41:51Z</published>
    <summary type="html">&lt;html&gt;&lt;head&gt;&lt;/head&gt;&lt;body&gt;Hello,&lt;br&gt;&lt;br&gt;I managed to do this in an Asset Publisher Display Style hook.&lt;br&gt;&lt;br&gt;I copied "title_list.jsp" from Asset Publisher display styles.&lt;br&gt;I modified it so that it uses document type icon.&lt;br&gt;&lt;br&gt;It's been done in a simple way, because this display style I created is used  for asset publisher displaying &lt;strong&gt;documents only&lt;/strong&gt;. &lt;br&gt;&lt;br&gt;So I think this is a good start, now it's just adding some asset type test (to determine whether it's a document, a web content, etc.) to perform like this only in the case of documents.&lt;br&gt;&lt;br&gt;Instead of this :&lt;br&gt;&lt;pre&gt;&lt;code&gt;...
			&amp;lt;liferay-ui:icon label="&amp;lt;%= true %&amp;gt;" message="&amp;lt;%= HtmlUtil.escape(title) %&amp;gt;" src="&amp;lt;%= assetRendererFactory.getIconPath(renderRequest) %&amp;gt;" url="&amp;lt;%= viewURL.toString() %&amp;gt;" /&amp;gt;
...&lt;/code&gt;&lt;/pre&gt;&lt;br&gt;&lt;br&gt;Use this :&lt;br&gt;&lt;pre&gt;&lt;code&gt;...
&amp;amp;lt;%
long docPK = assetEntry.getClassPK();
DLFileEntry dlFileEntry = DLFileEntryLocalServiceUtil.getFileEntry(docPK);
String iconPath = themeDisplay.getPathThemeImages()+"/file_system/small/"+dlFileEntry.getIcon()+".png";
%&amp;amp;gt;

&amp;lt;liferay-ui:icon label="&amp;lt;%= true %&amp;gt;" message="&amp;lt;%= HtmlUtil.escape(title) %&amp;gt;" src="&amp;lt;%= iconPath %&amp;gt;" url="&amp;lt;%= viewURL.toString() %&amp;gt;" /&amp;gt;
...&lt;/code&gt;&lt;/pre&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;There you go ! =)&lt;/body&gt;&lt;/html&gt;</summary>
    <dc:creator>M. Garcia</dc:creator>
    <dc:date>2011-08-03T09:41:51Z</dc:date>
  </entry>
  <entry>
    <title>RE: Asset publisher : list icons should represent document type</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=10281976" />
    <author>
      <name>Jorge Ferrer</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=10281976</id>
    <updated>2011-08-02T17:40:47Z</updated>
    <published>2011-08-02T17:40:47Z</published>
    <summary type="html">Thanks!&lt;br /&gt;&lt;br /&gt;I&amp;#39;ve added it to the Community Backlog so that other community members know they can also work on it.</summary>
    <dc:creator>Jorge Ferrer</dc:creator>
    <dc:date>2011-08-02T17:40:47Z</dc:date>
  </entry>
  <entry>
    <title>RE: Asset publisher : list icons should represent document type</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=10268804" />
    <author>
      <name>M. Garcia</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=10268804</id>
    <updated>2011-08-02T08:33:01Z</updated>
    <published>2011-08-02T08:33:01Z</published>
    <summary type="html">Here&amp;#39;s the JIRA ticket : &lt;a href="http://issues.liferay.com/browse/LPS-19499"&gt;http://issues.liferay.com/browse/LPS-19499&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;I&amp;#39;m quite busy lately so I can&amp;#39;t give it a try at the moment.&lt;br /&gt;If the issue&amp;#39;s still there when I&amp;#39;ll have more time then yes, I&amp;#39;ll give it a try ;-).&lt;br /&gt;&lt;br /&gt;(I potentially have a client which will need it soon, in which case I&amp;#39;ll handle this, but it really depends on him ;-) )</summary>
    <dc:creator>M. Garcia</dc:creator>
    <dc:date>2011-08-02T08:33:01Z</dc:date>
  </entry>
  <entry>
    <title>RE: Asset publisher : list icons should represent document type</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=10266847" />
    <author>
      <name>Jorge Ferrer</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=10266847</id>
    <updated>2011-08-02T07:11:50Z</updated>
    <published>2011-08-02T07:11:50Z</published>
    <summary type="html">Hi M. García,&lt;br /&gt;&lt;br /&gt;That&amp;#39;s a very good idea. It might require extending the Asset Framework (AssetRenderer in particular), but I think that&amp;#39;s perfectly fine. Please go ahead and create a JIRA ticket for it. Next paste the link in this thread.&lt;br /&gt;&lt;br /&gt;BTW, do you want to give it a try and implement it?</summary>
    <dc:creator>Jorge Ferrer</dc:creator>
    <dc:date>2011-08-02T07:11:50Z</dc:date>
  </entry>
  <entry>
    <title>Asset publisher : list icons should represent document type</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=10116231" />
    <author>
      <name>M. Garcia</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=10116231</id>
    <updated>2011-07-25T09:54:56Z</updated>
    <published>2011-07-25T09:54:56Z</published>
    <summary type="html">Hello,&lt;br /&gt;&lt;br /&gt;I was thinking about a trivial improvement of the Asset publisher.&lt;br /&gt;&lt;br /&gt;The icon for a document in the asset publisher is always the same (the &amp;#34;paperclip&amp;#34;).&lt;br /&gt;Once you click on the document entry, it displays the icon corresponding to the document type.&lt;br /&gt;&lt;br /&gt;I think it should be the case from the beginning, thus permitting the user to see what doc type it is from the list.&lt;br /&gt;&lt;br /&gt;Should I make a JIRA ticket ? =)</summary>
    <dc:creator>M. Garcia</dc:creator>
    <dc:date>2011-07-25T09:54:56Z</dc:date>
  </entry>
</feed>
