<?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 How to customize the properties in the thumbnail view? in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/how-to-customize-the-properties-in-the-thumbnail-view/m-p/325272#M12273</link>
    <description>&lt;P&gt;How can I customize the information displayed below the picture thumbnail in the search results, or in a content view?
Like on this picture, you can see that there is some custom information at the bottom:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="type an image title"&gt;&lt;img src="https://connect.hyland.com/t5/image/serverpage/image-id/1968i6E2B276B253131F4/image-size/large?v=v2&amp;amp;px=999" role="button" title="type an image title" alt="type an image title" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 01 Mar 2016 18:22:14 GMT</pubDate>
    <dc:creator>Bertrand_Chauvi</dc:creator>
    <dc:date>2016-03-01T18:22:14Z</dc:date>
    <item>
      <title>How to customize the properties in the thumbnail view?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/how-to-customize-the-properties-in-the-thumbnail-view/m-p/325272#M12273</link>
      <description>&lt;P&gt;How can I customize the information displayed below the picture thumbnail in the search results, or in a content view?
Like on this picture, you can see that there is some custom information at the bottom:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="type an image title"&gt;&lt;img src="https://connect.hyland.com/t5/image/serverpage/image-id/1968i6E2B276B253131F4/image-size/large?v=v2&amp;amp;px=999" role="button" title="type an image title" alt="type an image title" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Mar 2016 18:22:14 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/how-to-customize-the-properties-in-the-thumbnail-view/m-p/325272#M12273</guid>
      <dc:creator>Bertrand_Chauvi</dc:creator>
      <dc:date>2016-03-01T18:22:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to customize the properties in the thumbnail view?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/how-to-customize-the-properties-in-the-thumbnail-view/m-p/325273#M12274</link>
      <description>&lt;P&gt;Dear me,&lt;/P&gt;
&lt;P&gt;Thank you for asking; this is easy to achieve using Nuxeo Studio.&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;P&gt;In Advanced Settings &amp;gt; XML Extensions, create a new entry. The name you give it doesn't matter.&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;Into it, paste the following code and save.&lt;/P&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;PRE&gt;&lt;CODE&gt;&amp;lt;extension point="layouts" target="org.nuxeo.ecm.platform.forms.layout.WebLayoutManager"&amp;gt;
&amp;lt;layout name="document_listing_thumbnail" type="listingThumbnail"&amp;gt;
      &amp;lt;columns&amp;gt;
        &amp;lt;column name="last_contributor"&amp;gt;
          &amp;lt;properties mode="any"&amp;gt;
            &amp;lt;property name="label"&amp;gt;label.dublincore.lastContributor&amp;lt;/property&amp;gt;
          &amp;lt;/properties&amp;gt;
          &amp;lt;widget&amp;gt;listing_last_contributor&amp;lt;/widget&amp;gt;
        &amp;lt;/column&amp;gt;
        &amp;lt;column name="size_and_format"&amp;gt;
          &amp;lt;properties mode="any"&amp;gt;
            &amp;lt;property name="label"&amp;gt;
              label.selection.column.size_and_format
            &amp;lt;/property&amp;gt;
          &amp;lt;/properties&amp;gt;
          &amp;lt;widget&amp;gt;my_custom_dam_thumbnail_widget&amp;lt;/widget&amp;gt;
        &amp;lt;/column&amp;gt;
      &amp;lt;/columns&amp;gt;
    &amp;lt;/layout&amp;gt;
&amp;lt;/extension&amp;gt;

&amp;lt;extension target="org.nuxeo.ecm.platform.forms.layout.WebLayoutManager"
   point="widgets"&amp;gt;
  &amp;lt;widget name="my_custom_dam_thumbnail_widget" type="layout"&amp;gt;
    &amp;lt;labels&amp;gt;
      &amp;lt;label mode="any"&amp;gt;&amp;lt;/label&amp;gt;
    &amp;lt;/labels&amp;gt;
    &amp;lt;translated&amp;gt;false&amp;lt;/translated&amp;gt;
    &amp;lt;fields&amp;gt;
      &amp;lt;field&amp;gt;data&amp;lt;/field&amp;gt;
    &amp;lt;/fields&amp;gt;
    &amp;lt;properties widgetMode="any"&amp;gt;
      &amp;lt;property name="name"&amp;gt;MyDAMThumbnailLayout@view&amp;lt;/property&amp;gt;
      &amp;lt;property name="widgetsDisplay"&amp;gt;no_label&amp;lt;/property&amp;gt;
    &amp;lt;/properties&amp;gt;
  &amp;lt;/widget&amp;gt;
&amp;lt;/extension&amp;gt;

&lt;/CODE&gt;&lt;/PRE&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;P&gt;Now go to Listing and Views &amp;gt; Form Layouts and create a new entry. This time you should name it "MyDAMThumbnailLayout" (without the quotes of course). Don't name it differently unless you adapt the XML extension accordingly or it won't work!&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;Switch to the "View Layout" tab, edit it to your liking and save.&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;Deploy your configuration, and you are done! Piece of cake!&lt;/P&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;PS: If you wonder, the original contribution is here: &lt;A href="http://explorer.nuxeo.com/nuxeo/site/distribution/current/viewContribution/org.nuxeo.ecm.platform.forms.layouts.webapp.listing--layouts" target="test_blank"&gt;http://explorer.nuxeo.com/nuxeo/site/distribution/current/viewContribution/org.nuxeo.ecm.platform.forms.layouts.webapp.listing--layouts&lt;/A&gt; =&amp;gt; search for layout document_listing_thumbnail
You should also take a look at the &lt;A href="https://university.nuxeo.io/nuxeo/university/#!/course/nuxeo-platform-developer-basics/configuring-nuxeo-platform-services-xml-contributions"&gt;XML extensions video on Nuxeo University&lt;/A&gt; to learn more about them.&lt;/P&gt;</description>
      <pubDate>Tue, 01 Mar 2016 18:22:57 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/how-to-customize-the-properties-in-the-thumbnail-view/m-p/325273#M12274</guid>
      <dc:creator>Bertrand_Chauvi</dc:creator>
      <dc:date>2016-03-01T18:22:57Z</dc:date>
    </item>
  </channel>
</rss>

