<?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 HiddenInNavigation in nxql result in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/hiddeninnavigation-in-nxql-result/m-p/316793#M3794</link>
    <description>&lt;P&gt;Hello,
Is there a way to not list the documents with the facet "HiddenInNavigation" in the result of nxql.&lt;/P&gt;
&lt;P&gt;Scenario:&lt;/P&gt;
&lt;P&gt;1- Add the "HiddenInNavigation" facet dynamically (via a operation which calls the 'document.addfacet' method).&lt;/P&gt;
&lt;P&gt;2- search via the search menu.&lt;/P&gt;
&lt;P&gt;-&amp;gt; result: the document is not listed&lt;/P&gt;
&lt;P&gt;3- search via an nxql request with mixinType! = 'HiddenInNavigation'&lt;/P&gt;
&lt;P&gt;-&amp;gt; result: the document is listed.&lt;/P&gt;
&lt;P&gt;Thank you.&lt;/P&gt;</description>
    <pubDate>Fri, 10 Jan 2020 16:38:59 GMT</pubDate>
    <dc:creator>Ahmad_BenMaallem</dc:creator>
    <dc:date>2020-01-10T16:38:59Z</dc:date>
    <item>
      <title>HiddenInNavigation in nxql result</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/hiddeninnavigation-in-nxql-result/m-p/316793#M3794</link>
      <description>&lt;P&gt;Hello,
Is there a way to not list the documents with the facet "HiddenInNavigation" in the result of nxql.&lt;/P&gt;
&lt;P&gt;Scenario:&lt;/P&gt;
&lt;P&gt;1- Add the "HiddenInNavigation" facet dynamically (via a operation which calls the 'document.addfacet' method).&lt;/P&gt;
&lt;P&gt;2- search via the search menu.&lt;/P&gt;
&lt;P&gt;-&amp;gt; result: the document is not listed&lt;/P&gt;
&lt;P&gt;3- search via an nxql request with mixinType! = 'HiddenInNavigation'&lt;/P&gt;
&lt;P&gt;-&amp;gt; result: the document is listed.&lt;/P&gt;
&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jan 2020 16:38:59 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/hiddeninnavigation-in-nxql-result/m-p/316793#M3794</guid>
      <dc:creator>Ahmad_BenMaallem</dc:creator>
      <dc:date>2020-01-10T16:38:59Z</dc:date>
    </item>
    <item>
      <title>Re: HiddenInNavigation in nxql result</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/hiddeninnavigation-in-nxql-result/m-p/316794#M3795</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I think there is not any way of doing that. From the documentation:&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;ecm:mixinType: a list of the document facets (&lt;CODE&gt;DocumentModel.getFacets()&lt;/CODE&gt;) with some restrictions. 1. the facet Immutable is never seen. 2. &lt;STRONG&gt;the facets Folderish and HiddenInNavigation are never seen on document instances&lt;/STRONG&gt; (only if they're on the type). 3. like for other list properties, it can be used only with operators &lt;CODE&gt;=&lt;/CODE&gt;, &lt;CODE&gt;&amp;lt;&amp;gt;&lt;/CODE&gt;, &lt;CODE&gt;IN&lt;/CODE&gt; and &lt;CODE&gt;NOT IN&lt;/CODE&gt;.&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Link: &lt;A href="https://doc.nuxeo.com/nxdoc/nxql/#special-nxql-properties"&gt;https://doc.nuxeo.com/nxdoc/nxql/#special-nxql-properties&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;That's why using the "ecm:mixinType != 'HiddenInNavigation'" doesn't work, and the documents appear in the NXQL query.&lt;/P&gt;
&lt;P&gt;A possible approach could be to define your own facet. Just read this for more information about creating facets: &lt;A href="https://doc.nuxeo.com/studio/how-to-create-and-use-document-facets/"&gt;https://doc.nuxeo.com/studio/how-to-create-and-use-document-facets/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;After creating the new facet (let's say, "CustomNXQLFacet"), you can add the "HiddenInNavigation" facet along with "CustomNXQLFacet" facet, and include it in the NXQL query: "... AND ecm:mixinType != 'CustomNXQLFacet'".&lt;/P&gt;
&lt;P&gt;Regards.&lt;/P&gt;</description>
      <pubDate>Sun, 12 Jan 2020 14:44:08 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/hiddeninnavigation-in-nxql-result/m-p/316794#M3795</guid>
      <dc:creator>Rodri_</dc:creator>
      <dc:date>2020-01-12T14:44:08Z</dc:date>
    </item>
    <item>
      <title>Re: HiddenInNavigation in nxql result</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/hiddeninnavigation-in-nxql-result/m-p/316795#M3796</link>
      <description>&lt;P&gt;many thanks&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jan 2020 16:30:20 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/hiddeninnavigation-in-nxql-result/m-p/316795#M3796</guid>
      <dc:creator>Ahmad_BenMaallem</dc:creator>
      <dc:date>2020-01-15T16:30:20Z</dc:date>
    </item>
  </channel>
</rss>

