<?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 add a Collection Search Widget to a custom search? in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/how-to-add-a-collection-search-widget-to-a-custom-search/m-p/320803#M7804</link>
    <description>&lt;P&gt;Since FastTrack version 5.9.3, &lt;A href="http://doc.nuxeo.com/display/public/USERDOC/Collections"&gt;Collections&lt;/A&gt; are available, documents can be added to 1-n collections and the default searches (in DM and DAM views) allow to query on collections thanks to a widget which displays a list of available collections for the user.&lt;/P&gt;
&lt;P&gt;So. How can I add this widget to a search content-view using Studio?&lt;/P&gt;</description>
    <pubDate>Sat, 31 May 2014 06:54:30 GMT</pubDate>
    <dc:creator>ThibArg_</dc:creator>
    <dc:date>2014-05-31T06:54:30Z</dc:date>
    <item>
      <title>How to add a Collection Search Widget to a custom search?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/how-to-add-a-collection-search-widget-to-a-custom-search/m-p/320803#M7804</link>
      <description>&lt;P&gt;Since FastTrack version 5.9.3, &lt;A href="http://doc.nuxeo.com/display/public/USERDOC/Collections"&gt;Collections&lt;/A&gt; are available, documents can be added to 1-n collections and the default searches (in DM and DAM views) allow to query on collections thanks to a widget which displays a list of available collections for the user.&lt;/P&gt;
&lt;P&gt;So. How can I add this widget to a search content-view using Studio?&lt;/P&gt;</description>
      <pubDate>Sat, 31 May 2014 06:54:30 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/how-to-add-a-collection-search-widget-to-a-custom-search/m-p/320803#M7804</guid>
      <dc:creator>ThibArg_</dc:creator>
      <dc:date>2014-05-31T06:54:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to add a Collection Search Widget to a custom search?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/how-to-add-a-collection-search-widget-to-a-custom-search/m-p/320804#M7805</link>
      <description>&lt;P&gt;When a document is added to a collection, a new schema is added to this document (&lt;CODE&gt;collectionMember&lt;/CODE&gt;), with a field storing the ids of the related collections. So, to query on collections, we need to add this schema to the Studio registry, then use a Multiple Documents Suggestion widget and format it correctly.&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;P&gt;In the &lt;EM&gt;Schemas&lt;/EM&gt; registry, add the &lt;CODE&gt;collectionMember&lt;/CODE&gt; schema (warning if you already had shema(s) defined: Format the JSON accordingly):&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt; {
   schemas: {
     collectionMember: {
       "@prefix" : "collectionMember",
       "collectionIds" : "string[]"
     }
   }
 }
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&lt;EM&gt;IMPORTANT: This step will not be necessary shortly, as this schema will already be made available in Studio directly.&lt;/EM&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;In the Content-View used for DAM search, drag-Drop a Multiple Documents Suggestion widget and set the following properties:
&lt;UL&gt;
&lt;LI&gt;Field: &lt;CODE&gt;collectionMember:collectionIds&lt;/CODE&gt;&lt;/LI&gt;
&lt;LI&gt;(Operator &lt;CODE&gt;IN&lt;/CODE&gt;: No choices)&lt;/LI&gt;
&lt;LI&gt;Document page provider name: &lt;CODE&gt;default_collection&lt;/CODE&gt;
&lt;UL&gt;
&lt;LI&gt;This page provider makes sure only documents of type &lt;CODE&gt;Collection&lt;/CODE&gt; can be chosen by the user&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;LI&gt;Hide Help Label: &lt;CODE&gt;Yes&lt;/CODE&gt; &lt;EM&gt;(not required, but better look &amp;amp; feel)&lt;/EM&gt;&lt;/LI&gt;
&lt;LI&gt;Suggestion Formatter: &lt;CODE&gt;docSelectionDefaultFormatter&lt;/CODE&gt;
&lt;UL&gt;
&lt;LI&gt;This formater displays the list of collections without their paths (the default Multiple Documents Suggestion widget also displays the path in the list of documents)&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&lt;STRONG&gt;Reminder&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;This works only with Nuxeo &amp;gt;= version 5.9.3&lt;/P&gt;</description>
      <pubDate>Sat, 31 May 2014 07:06:45 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/how-to-add-a-collection-search-widget-to-a-custom-search/m-p/320804#M7805</guid>
      <dc:creator>ThibArg_</dc:creator>
      <dc:date>2014-05-31T07:06:45Z</dc:date>
    </item>
  </channel>
</rss>

