<?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: Adding Content on Summary View for Facet in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/adding-content-on-summary-view-for-facet/m-p/319179#M6180</link>
    <description>&lt;P&gt;You're right, the second option is better in terms of maintenance.&lt;/P&gt;</description>
    <pubDate>Wed, 24 Aug 2011 12:00:22 GMT</pubDate>
    <dc:creator>Anahide_Tchertc</dc:creator>
    <dc:date>2011-08-24T12:00:22Z</dc:date>
    <item>
      <title>Adding Content on Summary View for Facet</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/adding-content-on-summary-view-for-facet/m-p/319175#M6176</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I'm trying to figure out the best way to add content in the summary view if a facet is present for the document.&lt;/P&gt;
&lt;P&gt;Already have an xhtml file with the content, but can't figure out how to declare it for it to show in the view.&lt;/P&gt;
&lt;P&gt;Any pointer would be appreciated.&lt;/P&gt;
&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Mon, 22 Aug 2011 22:44:02 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/adding-content-on-summary-view-for-facet/m-p/319175#M6176</guid>
      <dc:creator>patrek</dc:creator>
      <dc:date>2011-08-22T22:44:02Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Content on Summary View for Facet</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/adding-content-on-summary-view-for-facet/m-p/319176#M6177</link>
      <description>&lt;P&gt;If you already have the content and the XHTML, what you have to do is to declare an action in a contrib to display your content. Something like this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;&amp;lt;?xml version="1.0" encoding="UTF-8"?&amp;gt;
&amp;lt;component name="my.component.name"&amp;gt;

&amp;lt;extension target="org.nuxeo.ecm.platform.actions.ActionService"
  point="actions"&amp;gt;

...

&amp;lt;action id="my_view" link="/incl/tabs/my_document_view.xhtml"
        enabled="true" label="My view" icon="/icons/file.gif" order="9"&amp;gt;
  &amp;lt;category&amp;gt;VIEW_ACTION_LIST&amp;lt;/category&amp;gt;
  &amp;lt;filter id="my_document_view_filter"&amp;gt;
    &amp;lt;rule grant="true"&amp;gt;
      &amp;lt;type&amp;gt;my_document&amp;lt;/type&amp;gt;
    &amp;lt;/rule&amp;gt;
  &amp;lt;/filter&amp;gt;
&amp;lt;/action&amp;gt;

...

&amp;lt;/extension&amp;gt;
&amp;lt;/component&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;This will display your content as a new tab.&lt;/P&gt;
&lt;P&gt;If the only thing you want is to display your content on summary, go to summary xhtml and include your own.&lt;/P&gt;</description>
      <pubDate>Tue, 23 Aug 2011 02:17:36 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/adding-content-on-summary-view-for-facet/m-p/319176#M6177</guid>
      <dc:creator>Daniel_Téllez</dc:creator>
      <dc:date>2011-08-23T02:17:36Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Content on Summary View for Facet</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/adding-content-on-summary-view-for-facet/m-p/319177#M6178</link>
      <description>&lt;P&gt;There are several ways to do that depending on how you'd like this feature to affect all document types, or whether you'd like to fine-tune it per document type.&lt;/P&gt;
&lt;P&gt;To affect all document types, the easiest is to override the &lt;A href="http://hg.nuxeo.org/nuxeo/nuxeo-dm/file/release-5.4.2/nuxeo-platform-webapp/src/main/resources/web/nuxeo.war/incl/tabs/document_view.xhtml"&gt;/incl/tabs/document_view.xhtml&lt;/A&gt; template to add your specific xhtml code.&lt;/P&gt;
&lt;P&gt;To affect only some document types, you can package the xhtml code as a widget template, taking example on what's done for the widget showing comments in the summary, for instance: this template is at &lt;A href="http://hg.nuxeo.org/nuxeo/nuxeo-features/file/release-5.4.2/nuxeo-platform-comment/nuxeo-platform-comment-web/src/main/resources/web/nuxeo.war/widgets/summary/comments_widget_template.xhtml"&gt;/widgets/summary/comments_widget_template.xhtml&lt;/A&gt; and its definition is made through extension points, you can browse it content here: &lt;A href="http://explorer.nuxeo.org/nuxeo/site/distribution/Nuxeo%20DM-5.4.2/viewComponent/org.nuxeo.ecm.platform.forms.layouts.webapp.summary"&gt;org.nuxeo.ecm.platform.forms.layouts.webapp.summary&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Note that the summary layout can be configured on documents by specifying the layout to use in the mode "summary", see for instance the specific configuration for the "Note" document type:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;&amp;lt;type id="Note"&amp;gt;
  [...]
  &amp;lt;layouts mode="summary"&amp;gt;
    &amp;lt;layout&amp;gt;note_summary_layout&amp;lt;/layout&amp;gt;
  &amp;lt;/layouts&amp;gt;
  [...]
&amp;lt;/type&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Defining your code as a widget template is also a good thing to be able to configure its presence on the summary view of a given document type using Nuxeo Studio.&lt;/P&gt;</description>
      <pubDate>Tue, 23 Aug 2011 13:03:25 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/adding-content-on-summary-view-for-facet/m-p/319177#M6178</guid>
      <dc:creator>Anahide_Tchertc</dc:creator>
      <dc:date>2011-08-23T13:03:25Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Content on Summary View for Facet</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/adding-content-on-summary-view-for-facet/m-p/319178#M6179</link>
      <description>&lt;P&gt;The problem with overriding, it makes you more fragile to updates in nuxeo-dm.&lt;/P&gt;</description>
      <pubDate>Tue, 23 Aug 2011 21:33:41 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/adding-content-on-summary-view-for-facet/m-p/319178#M6179</guid>
      <dc:creator>patrek</dc:creator>
      <dc:date>2011-08-23T21:33:41Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Content on Summary View for Facet</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/adding-content-on-summary-view-for-facet/m-p/319179#M6180</link>
      <description>&lt;P&gt;You're right, the second option is better in terms of maintenance.&lt;/P&gt;</description>
      <pubDate>Wed, 24 Aug 2011 12:00:22 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/adding-content-on-summary-view-for-facet/m-p/319179#M6180</guid>
      <dc:creator>Anahide_Tchertc</dc:creator>
      <dc:date>2011-08-24T12:00:22Z</dc:date>
    </item>
  </channel>
</rss>

