<?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: How can I get document label and use it in result of content view in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/how-can-i-get-document-label-and-use-it-in-result-of-content/m-p/322116#M9117</link>
    <description>&lt;P&gt;Thanks for the extra info (please leave a comment when you modify your post so that we get notified).&lt;/P&gt;</description>
    <pubDate>Thu, 29 Nov 2012 11:45:33 GMT</pubDate>
    <dc:creator>Anahide_Tchertc</dc:creator>
    <dc:date>2012-11-29T11:45:33Z</dc:date>
    <item>
      <title>How can I get document label and use it in result of content view</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/how-can-i-get-document-label-and-use-it-in-result-of-content/m-p/322112#M9113</link>
      <description>&lt;P&gt;Hello&lt;BR /&gt;/&amp;gt;
I create a document type "bilan_carbone" with label "Bilan Carbone".&lt;BR /&gt;/&amp;gt;
Then I create a content view, and in results I have a column with document type (Document). But this column display the ID of the document type instead of label.&lt;BR /&gt;/&amp;gt;
How can I display label of this document type ?&lt;/P&gt;
&lt;P&gt;&lt;IMG src="https://connect.hyland.com/upfiles/Capture_5.JPG" alt="alt text" /&gt;&lt;/P&gt;
&lt;P&gt;I configure this document type in Studio. Here the capture of configuration :&lt;BR /&gt;/&amp;gt;
&lt;IMG src="https://connect.hyland.com/upfiles/Capture_7.JPG" alt="alt text" /&gt;
Then the configuration of my content view where show document type ID instead of document type label . I use the widget system:document type:&lt;BR /&gt;/&amp;gt;
&lt;IMG src="https://connect.hyland.com/upfiles/Capture_8.JPG" alt="alt text" /&gt;&lt;BR /&gt;/&amp;gt;&lt;/P&gt;
&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Tue, 20 Nov 2012 11:19:37 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/how-can-i-get-document-label-and-use-it-in-result-of-content/m-p/322112#M9113</guid>
      <dc:creator>delphine_</dc:creator>
      <dc:date>2012-11-20T11:19:37Z</dc:date>
    </item>
    <item>
      <title>Re: How can I get document label and use it in result of content view</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/how-can-i-get-document-label-and-use-it-in-result-of-content/m-p/322113#M9114</link>
      <description>&lt;P&gt;I think you have to check the translate field into the definition of your widget that displays this item and add the translation key/value into your messages_fr.properties file that you can download from Resources in Studio.&lt;/P&gt;
&lt;P&gt;Hopes this help.&lt;/P&gt;</description>
      <pubDate>Thu, 22 Nov 2012 11:44:05 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/how-can-i-get-document-label-and-use-it-in-result-of-content/m-p/322113#M9114</guid>
      <dc:creator>Benjamin_Jalon1</dc:creator>
      <dc:date>2012-11-22T11:44:05Z</dc:date>
    </item>
    <item>
      <title>Re: How can I get document label and use it in result of content view</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/how-can-i-get-document-label-and-use-it-in-result-of-content/m-p/322114#M9115</link>
      <description>&lt;P&gt;Thanks for your answer. But it's not an item but the label of document type. In the picture it's display the ID of this document type. Perhaps another idea ?&lt;/P&gt;</description>
      <pubDate>Thu, 22 Nov 2012 17:21:42 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/how-can-i-get-document-label-and-use-it-in-result-of-content/m-p/322114#M9115</guid>
      <dc:creator>delphine_</dc:creator>
      <dc:date>2012-11-22T17:21:42Z</dc:date>
    </item>
    <item>
      <title>Re: How can I get document label and use it in result of content view</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/how-can-i-get-document-label-and-use-it-in-result-of-content/m-p/322115#M9116</link>
      <description>&lt;P&gt;Can you describe where you put the label "Bilan Carbone"? Is it in the document type configuration in Studio?&lt;/P&gt;</description>
      <pubDate>Thu, 22 Nov 2012 22:29:07 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/how-can-i-get-document-label-and-use-it-in-result-of-content/m-p/322115#M9116</guid>
      <dc:creator>Anahide_Tchertc</dc:creator>
      <dc:date>2012-11-22T22:29:07Z</dc:date>
    </item>
    <item>
      <title>Re: How can I get document label and use it in result of content view</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/how-can-i-get-document-label-and-use-it-in-result-of-content/m-p/322116#M9117</link>
      <description>&lt;P&gt;Thanks for the extra info (please leave a comment when you modify your post so that we get notified).&lt;/P&gt;</description>
      <pubDate>Thu, 29 Nov 2012 11:45:33 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/how-can-i-get-document-label-and-use-it-in-result-of-content/m-p/322116#M9117</guid>
      <dc:creator>Anahide_Tchertc</dc:creator>
      <dc:date>2012-11-29T11:45:33Z</dc:date>
    </item>
    <item>
      <title>Re: How can I get document label and use it in result of content view</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/how-can-i-get-document-label-and-use-it-in-result-of-content/m-p/322117#M9118</link>
      <description>&lt;P&gt;There is not default widget type displaying the label of a given document type (except the one also displaying an icon), and the system widget you're using will just display the id of the document type.&lt;/P&gt;
&lt;P&gt;The easiest would be to define an advanced widget template with the following content:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;&amp;lt;div xmlns:nxd="http://nuxeo.org/nxweb/document"
  xmlns:h="http://java.sun.com/jsf/html"&amp;gt;
  &amp;lt;h:outputText value="#{messages[nxd:typeLabel(field)]}" /&amp;gt;
&amp;lt;/div&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;In the widget definition, you'll have to map a "field" to item "data" as in result layouts, each bound item is a wrapper object of the document.&lt;/P&gt;</description>
      <pubDate>Fri, 30 Nov 2012 19:47:24 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/how-can-i-get-document-label-and-use-it-in-result-of-content/m-p/322117#M9118</guid>
      <dc:creator>Anahide_Tchertc</dc:creator>
      <dc:date>2012-11-30T19:47:24Z</dc:date>
    </item>
    <item>
      <title>Re: How can I get document label and use it in result of content view</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/how-can-i-get-document-label-and-use-it-in-result-of-content/m-p/322118#M9119</link>
      <description>&lt;P&gt;Ok, but if I want to filter the documents in the "result layouts" by document label, How would I do it?&lt;/P&gt;</description>
      <pubDate>Fri, 30 Nov 2012 20:25:03 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/how-can-i-get-document-label-and-use-it-in-result-of-content/m-p/322118#M9119</guid>
      <dc:creator>geekonspace</dc:creator>
      <dc:date>2012-11-30T20:25:03Z</dc:date>
    </item>
    <item>
      <title>Re: How can I get document label and use it in result of content view</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/how-can-i-get-document-label-and-use-it-in-result-of-content/m-p/322119#M9120</link>
      <description>&lt;P&gt;You'll need to define a custom widget template too to generate the list of selections, retrieving the label for each of the types you'd like to display (similarly to what you explained on your answer).&lt;/P&gt;</description>
      <pubDate>Fri, 30 Nov 2012 20:35:02 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/how-can-i-get-document-label-and-use-it-in-result-of-content/m-p/322119#M9120</guid>
      <dc:creator>Anahide_Tchertc</dc:creator>
      <dc:date>2012-11-30T20:35:02Z</dc:date>
    </item>
    <item>
      <title>Re: How can I get document label and use it in result of content view</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/how-can-i-get-document-label-and-use-it-in-result-of-content/m-p/322120#M9121</link>
      <description>&lt;P&gt;Thanks for your help. I will test that quickly !&lt;/P&gt;</description>
      <pubDate>Thu, 06 Dec 2012 17:50:45 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/how-can-i-get-document-label-and-use-it-in-result-of-content/m-p/322120#M9121</guid>
      <dc:creator>delphine_</dc:creator>
      <dc:date>2012-12-06T17:50:45Z</dc:date>
    </item>
    <item>
      <title>Re: How can I get document label and use it in result of content view</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/how-can-i-get-document-label-and-use-it-in-result-of-content/m-p/322121#M9122</link>
      <description>&lt;P&gt;Hello,
I search to do the same action.
I have created a widget and I search to have the labl of the document type, but nothing happend.
my widget :
&amp;lt;f:subview xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:a4j="https://ajax4jsf.dev.java.net/ajax"
xmlns:nxu="http://nuxeo.org/nxweb/util"
xmlns:nxdir="http://nuxeo.org/nxdirectory"
xmlns:c="http://java.sun.com/jstl/core"
xmlns:nxp="http://nuxeo.org/nxweb/pdf"
id="#{widget.id}"&amp;gt;&lt;/P&gt;
  &lt;DIV NXD="http://nuxeo.org/nxweb/document" H="http://java.sun.com/jsf/html"&gt;
  &lt;OUTPUTTEXT value="#{messages[nxd:typeLabel(field)]}"&gt;&lt;/OUTPUTTEXT&gt;
&lt;/DIV&gt;

&lt;P&gt;but when I use the widget in creation view, I don't know how to configure the widget,
can you help me ?
thanks&lt;/P&gt;</description>
      <pubDate>Mon, 17 Jun 2013 15:18:37 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/how-can-i-get-document-label-and-use-it-in-result-of-content/m-p/322121#M9122</guid>
      <dc:creator>vjoussot_</dc:creator>
      <dc:date>2013-06-17T15:18:37Z</dc:date>
    </item>
    <item>
      <title>Re: How can I get document label and use it in result of content view</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/how-can-i-get-document-label-and-use-it-in-result-of-content/m-p/322122#M9123</link>
      <description>&lt;P&gt;should to do a new question&lt;/P&gt;</description>
      <pubDate>Mon, 17 Jun 2013 18:15:21 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/how-can-i-get-document-label-and-use-it-in-result-of-content/m-p/322122#M9123</guid>
      <dc:creator>geekonspace</dc:creator>
      <dc:date>2013-06-17T18:15:21Z</dc:date>
    </item>
  </channel>
</rss>

