<?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: Filtering nuxeo-slot-content in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/filtering-nuxeo-slot-content/m-p/316835#M3836</link>
    <description>&lt;P&gt;You have to use &lt;CODE&gt;nuxeo-filter&lt;/CODE&gt; element in your slot contribution. &lt;CODE&gt;filter-id&lt;/CODE&gt; tag is only for Nuxeo XML Extensions.&lt;/P&gt;</description>
    <pubDate>Sun, 12 Jan 2020 21:52:56 GMT</pubDate>
    <dc:creator>Gregory_Carlin</dc:creator>
    <dc:date>2020-01-12T21:52:56Z</dc:date>
    <item>
      <title>Filtering nuxeo-slot-content</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/filtering-nuxeo-slot-content/m-p/316834#M3835</link>
      <description>&lt;P&gt;I would like to hide the most of the slot items for the anonymous user. For the actions we can use the &lt;CODE&gt;&amp;lt;filter-id&amp;gt;&lt;/CODE&gt; tag and predefined filters like in this example:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;&amp;lt;action id="newDocument" link="select_document_type" enabled="true"&amp;nbsp; &amp;nbsp; label="action.new.document" icon="/icons/action_add.gif"&amp;gt;
  &amp;lt;category&amp;gt;SUBVIEW_UPPER_LIST&amp;lt;/category&amp;gt;&amp;nbsp; 
  &amp;lt;filter-id&amp;gt;create&amp;lt;/filter-id&amp;gt;
&amp;lt;/action&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Is there a way to filter the slot contents using the &lt;CODE&gt;&amp;lt;filter-id&amp;gt;&lt;/CODE&gt; tag as above or the only way is using &lt;CODE&gt;&amp;lt;nuxeo-filter&amp;gt;&lt;/CODE&gt; like this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;&amp;lt;nuxeo-slot-content name="recentsDrawerItem" slot="DRAWER_ITEMS" order="20"&amp;gt;
  &amp;lt;template&amp;gt;
    &amp;lt;nuxeo-filter document="[[document]]" user="[[user]]" expression="!user.isAnonymous"&amp;gt;
      &amp;lt;template&amp;gt;
        &amp;lt;nuxeo-menu-icon name="recents" icon="nuxeo:recent" label="app.recentlyViewed"&amp;gt;&amp;lt;/nuxeo-menu-icon&amp;gt;
      &amp;lt;/template&amp;gt;
    &amp;lt;/nuxeo-filter&amp;gt;
  &amp;lt;/template&amp;gt;
&amp;lt;/nuxeo-slot-content&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 11 Jan 2020 14:05:30 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/filtering-nuxeo-slot-content/m-p/316834#M3835</guid>
      <dc:creator>Anton_Petrov</dc:creator>
      <dc:date>2020-01-11T14:05:30Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering nuxeo-slot-content</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/filtering-nuxeo-slot-content/m-p/316835#M3836</link>
      <description>&lt;P&gt;You have to use &lt;CODE&gt;nuxeo-filter&lt;/CODE&gt; element in your slot contribution. &lt;CODE&gt;filter-id&lt;/CODE&gt; tag is only for Nuxeo XML Extensions.&lt;/P&gt;</description>
      <pubDate>Sun, 12 Jan 2020 21:52:56 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/filtering-nuxeo-slot-content/m-p/316835#M3836</guid>
      <dc:creator>Gregory_Carlin</dc:creator>
      <dc:date>2020-01-12T21:52:56Z</dc:date>
    </item>
  </channel>
</rss>

