<?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 Relations Tab for folderish document types in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/relations-tab-for-folderish-document-types/m-p/313319#M320</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;i am trying to show the Relations Tab for folderish document types with the following action contribution:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;&amp;lt;?xml version="1.0"?&amp;gt;
&amp;lt;component name="net.hra.custom1.actions"&amp;gt;  
&amp;lt;require&amp;gt;org.nuxeo.ecm.platform.actions.relations.web&amp;lt;/require&amp;gt;
&amp;lt;extension target="org.nuxeo.ecm.platform.actions.ActionService" point="actions"&amp;gt;
    &amp;lt;action id="TAB_RELATIONS" link="/incl/tabs/document_relations.xhtml"
      enabled="true" label="action.view.relations" order="55" type="rest_document_link"&amp;gt;
      &amp;lt;category&amp;gt;VIEW_ACTION_LIST&amp;lt;/category&amp;gt;
      &amp;lt;filter id="view_relations"&amp;gt;
        &amp;lt;rule grant="true"&amp;gt;
          &amp;lt;permission&amp;gt;Read&amp;lt;/permission&amp;gt;
        &amp;lt;/rule&amp;gt;
        &amp;lt;rule grant="true"&amp;gt;
          &amp;lt;facet&amp;gt;Folderish&amp;lt;/facet&amp;gt;
        &amp;lt;/rule&amp;gt;
        &amp;lt;rule grant="false"&amp;gt;
          &amp;lt;type&amp;gt;Server&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;I thought with this contribution the Relations Tab would be shown for every Folderish Document type, but it's not working.&lt;/P&gt;
&lt;P&gt;What do i miss here?&lt;/P&gt;
&lt;P&gt;Thanks,
Max&lt;/P&gt;</description>
    <pubDate>Wed, 08 Apr 2015 18:35:16 GMT</pubDate>
    <dc:creator>maxodoble</dc:creator>
    <dc:date>2015-04-08T18:35:16Z</dc:date>
    <item>
      <title>Relations Tab for folderish document types</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/relations-tab-for-folderish-document-types/m-p/313319#M320</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;i am trying to show the Relations Tab for folderish document types with the following action contribution:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;&amp;lt;?xml version="1.0"?&amp;gt;
&amp;lt;component name="net.hra.custom1.actions"&amp;gt;  
&amp;lt;require&amp;gt;org.nuxeo.ecm.platform.actions.relations.web&amp;lt;/require&amp;gt;
&amp;lt;extension target="org.nuxeo.ecm.platform.actions.ActionService" point="actions"&amp;gt;
    &amp;lt;action id="TAB_RELATIONS" link="/incl/tabs/document_relations.xhtml"
      enabled="true" label="action.view.relations" order="55" type="rest_document_link"&amp;gt;
      &amp;lt;category&amp;gt;VIEW_ACTION_LIST&amp;lt;/category&amp;gt;
      &amp;lt;filter id="view_relations"&amp;gt;
        &amp;lt;rule grant="true"&amp;gt;
          &amp;lt;permission&amp;gt;Read&amp;lt;/permission&amp;gt;
        &amp;lt;/rule&amp;gt;
        &amp;lt;rule grant="true"&amp;gt;
          &amp;lt;facet&amp;gt;Folderish&amp;lt;/facet&amp;gt;
        &amp;lt;/rule&amp;gt;
        &amp;lt;rule grant="false"&amp;gt;
          &amp;lt;type&amp;gt;Server&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;I thought with this contribution the Relations Tab would be shown for every Folderish Document type, but it's not working.&lt;/P&gt;
&lt;P&gt;What do i miss here?&lt;/P&gt;
&lt;P&gt;Thanks,
Max&lt;/P&gt;</description>
      <pubDate>Wed, 08 Apr 2015 18:35:16 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/relations-tab-for-folderish-document-types/m-p/313319#M320</guid>
      <dc:creator>maxodoble</dc:creator>
      <dc:date>2015-04-08T18:35:16Z</dc:date>
    </item>
    <item>
      <title>Re: Relations Tab for folderish document types</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/relations-tab-for-folderish-document-types/m-p/313320#M321</link>
      <description>&lt;P&gt;Ok, overriding the default "TAB RELATIONS" action doesn't work for me, but using a &lt;EM&gt;custom action id&lt;/EM&gt; seems to do the trick. I wanted to have visible TAB RELATIONS for my custom folderish doctype "CFolder":&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;&amp;lt;?xml version="1.0"?&amp;gt;
&amp;lt;component name="net.hra.custom1.actions"&amp;gt;  
&amp;lt;extension target="org.nuxeo.ecm.platform.actions.ActionService" point="actions"&amp;gt;
    &amp;lt;action id="MY_TAB_RELATIONS" link="/incl/tabs/document_relations.xhtml"
      enabled="true" label="action.view.relations" order="55" type="rest_document_link"&amp;gt;
      &amp;lt;category&amp;gt;VIEW_ACTION_LIST&amp;lt;/category&amp;gt;
      &amp;lt;filter id="cf_view_relations"&amp;gt;
        &amp;lt;rule grant="false"&amp;gt;
          &amp;lt;condition&amp;gt;#{not (currentDocument.type =='CFolder')}&amp;lt;/condition&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 contribution works for me.&lt;/P&gt;
&lt;P&gt;It would be nice to know, why my first approach (complete override of TAB RELATION action) isn't working, can somebody with more insight shed some light to this for me?&lt;/P&gt;
&lt;P&gt;Thanks,
Max&lt;/P&gt;</description>
      <pubDate>Tue, 14 Apr 2015 11:44:22 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/relations-tab-for-folderish-document-types/m-p/313320#M321</guid>
      <dc:creator>maxodoble</dc:creator>
      <dc:date>2015-04-14T11:44:22Z</dc:date>
    </item>
  </channel>
</rss>

