<?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: Is possible to change the color of a content view list based on a value of a metadata? in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/is-possible-to-change-the-color-of-a-content-view-list-based-on/m-p/328316#M15317</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Style class on table/tr element is hardcoded right now (and only handles dataRowEven/dataRowOdd classes), so that is not easily configurable.&lt;/P&gt;
&lt;P&gt;You can look into the layout template used for the listing rendering to see how all this is done here: &lt;A href="https://github.com/nuxeo/nuxeo-jsf/blob/master/nuxeo-platform-webapp-base/src/main/resources/web/nuxeo.war/layouts/layout_listing_ajax_template.xhtml" target="test_blank"&gt;https://github.com/nuxeo/nuxeo-jsf/blob/master/nuxeo-platform-webapp-base/src/main/resources/web/nuxeo.war/layouts/layout_listing_ajax_template.xhtml&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;If you'd like to retrieve the current item here, it'll probably be available by expression "#{value.data} since each item is a PageSelection here.&lt;/P&gt;
&lt;P&gt;There are other kinds of customizations available, but not directly on the tr element. For instance you can control the style class of a widget within each td, and you can also set a style class on each column (this is doable in Studio, but obviously in this case you need a static class, it cannot depend on the document)&lt;/P&gt;</description>
    <pubDate>Thu, 18 Oct 2012 10:00:03 GMT</pubDate>
    <dc:creator>Anahide_Tchertc</dc:creator>
    <dc:date>2012-10-18T10:00:03Z</dc:date>
    <item>
      <title>Is possible to change the color of a content view list based on a value of a metadata?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/is-possible-to-change-the-color-of-a-content-view-list-based-on/m-p/328313#M15314</link>
      <description>&lt;P&gt;For example, I would like to have a different colour for all rows having the same version number or contributor in the list.  How could I customise the style (css) of the content view list?&lt;/P&gt;</description>
      <pubDate>Wed, 10 Oct 2012 16:21:14 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/is-possible-to-change-the-color-of-a-content-view-list-based-on/m-p/328313#M15314</guid>
      <dc:creator>apagulayan_</dc:creator>
      <dc:date>2012-10-10T16:21:14Z</dc:date>
    </item>
    <item>
      <title>Re: Is possible to change the color of a content view list based on a value of a metadata?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/is-possible-to-change-the-color-of-a-content-view-list-based-on/m-p/328314#M15315</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;</description>
      <pubDate>Wed, 10 Oct 2012 17:14:25 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/is-possible-to-change-the-color-of-a-content-view-list-based-on/m-p/328314#M15315</guid>
      <dc:creator>Lise_Kemen</dc:creator>
      <dc:date>2012-10-10T17:14:25Z</dc:date>
    </item>
    <item>
      <title>Re: Is possible to change the color of a content view list based on a value of a metadata?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/is-possible-to-change-the-color-of-a-content-view-list-based-on/m-p/328315#M15316</link>
      <description>&lt;P&gt;Is it possible to add a css class on the table/tr element?&lt;/P&gt;</description>
      <pubDate>Wed, 10 Oct 2012 17:23:32 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/is-possible-to-change-the-color-of-a-content-view-list-based-on/m-p/328315#M15316</guid>
      <dc:creator>apagulayan_</dc:creator>
      <dc:date>2012-10-10T17:23:32Z</dc:date>
    </item>
    <item>
      <title>Re: Is possible to change the color of a content view list based on a value of a metadata?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/is-possible-to-change-the-color-of-a-content-view-list-based-on/m-p/328316#M15317</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Style class on table/tr element is hardcoded right now (and only handles dataRowEven/dataRowOdd classes), so that is not easily configurable.&lt;/P&gt;
&lt;P&gt;You can look into the layout template used for the listing rendering to see how all this is done here: &lt;A href="https://github.com/nuxeo/nuxeo-jsf/blob/master/nuxeo-platform-webapp-base/src/main/resources/web/nuxeo.war/layouts/layout_listing_ajax_template.xhtml" target="test_blank"&gt;https://github.com/nuxeo/nuxeo-jsf/blob/master/nuxeo-platform-webapp-base/src/main/resources/web/nuxeo.war/layouts/layout_listing_ajax_template.xhtml&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;If you'd like to retrieve the current item here, it'll probably be available by expression "#{value.data} since each item is a PageSelection here.&lt;/P&gt;
&lt;P&gt;There are other kinds of customizations available, but not directly on the tr element. For instance you can control the style class of a widget within each td, and you can also set a style class on each column (this is doable in Studio, but obviously in this case you need a static class, it cannot depend on the document)&lt;/P&gt;</description>
      <pubDate>Thu, 18 Oct 2012 10:00:03 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/is-possible-to-change-the-color-of-a-content-view-list-based-on/m-p/328316#M15317</guid>
      <dc:creator>Anahide_Tchertc</dc:creator>
      <dc:date>2012-10-18T10:00:03Z</dc:date>
    </item>
  </channel>
</rss>

