<?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: How do you turn off or ignore a facet on a new Document type? in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/how-do-you-turn-off-or-ignore-a-facet-on-a-new-document-type/m-p/313125#M126</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;</description>
    <pubDate>Wed, 19 Dec 2012 00:29:53 GMT</pubDate>
    <dc:creator>Vladimir_Pasqui</dc:creator>
    <dc:date>2012-12-19T00:29:53Z</dc:date>
    <item>
      <title>How do you turn off or ignore a facet on a new Document type?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/how-do-you-turn-off-or-ignore-a-facet-on-a-new-document-type/m-p/313124#M125</link>
      <description>&lt;P&gt;I created a new document type that extends a File.  I want it to behave like a file except I don't want it to be publishable.  What are my options?&lt;/P&gt;
&lt;P&gt;Is there a way to turn off this facet?
Or...do I have to extend from a Document, and include all the schemas and facets except the Publishable one that is defined for a File, like this...&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;&amp;lt;doctype extends="Document" name="myFile"&amp;gt;
  &amp;lt;schema name="common"/&amp;gt;
  &amp;lt;schema name="file"/&amp;gt;
  &amp;lt;schema name="dublincore"/&amp;gt;
  &amp;lt;schema name="uid"/&amp;gt;
  &amp;lt;schema name="files"/&amp;gt;
  &amp;lt;facet name="Downloadable"/&amp;gt;
  &amp;lt;facet name="Versionable"/&amp;gt;
  &amp;lt;facet name="Commentable"/&amp;gt;
  &amp;lt;facet name="HasRelatedText"/&amp;gt;
&amp;lt;/doctype&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I do not want to overwrite the original File Document type.
Thanks,&lt;/P&gt;</description>
      <pubDate>Tue, 18 Dec 2012 18:33:47 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/how-do-you-turn-off-or-ignore-a-facet-on-a-new-document-type/m-p/313124#M125</guid>
      <dc:creator>joannadark_</dc:creator>
      <dc:date>2012-12-18T18:33:47Z</dc:date>
    </item>
    <item>
      <title>Re: How do you turn off or ignore a facet on a new Document type?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/how-do-you-turn-off-or-ignore-a-facet-on-a-new-document-type/m-p/313125#M126</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;</description>
      <pubDate>Wed, 19 Dec 2012 00:29:53 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/how-do-you-turn-off-or-ignore-a-facet-on-a-new-document-type/m-p/313125#M126</guid>
      <dc:creator>Vladimir_Pasqui</dc:creator>
      <dc:date>2012-12-19T00:29:53Z</dc:date>
    </item>
    <item>
      <title>Re: How do you turn off or ignore a facet on a new Document type?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/how-do-you-turn-off-or-ignore-a-facet-on-a-new-document-type/m-p/313126#M127</link>
      <description>&lt;P&gt;Yes, my goal is to hide the publish tab...&lt;/P&gt;</description>
      <pubDate>Wed, 19 Dec 2012 00:47:06 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/how-do-you-turn-off-or-ignore-a-facet-on-a-new-document-type/m-p/313126#M127</guid>
      <dc:creator>joannadark_</dc:creator>
      <dc:date>2012-12-19T00:47:06Z</dc:date>
    </item>
    <item>
      <title>Re: How do you turn off or ignore a facet on a new Document type?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/how-do-you-turn-off-or-ignore-a-facet-on-a-new-document-type/m-p/313127#M128</link>
      <description>&lt;P&gt;Here is the contribution for publish tab:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;&amp;lt;action id="TAB_PUBLISH" link="/incl/tabs/document_publish.xhtml" order="53"
        label="action.publish.content" icon="/icons/file.gif"&amp;gt;
  &amp;lt;category&amp;gt;VIEW_ACTION_LIST&amp;lt;/category&amp;gt;
  &amp;lt;filter-id&amp;gt;publish_document&amp;lt;/filter-id&amp;gt;
  &amp;lt;filter-id&amp;gt;mutable_document&amp;lt;/filter-id&amp;gt;
&amp;lt;/action&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;If you want to deactivate it all the time, you can put enable="false" like this way:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;&amp;lt;action id="TAB_PUBLISH" enabled="false"/&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;And thats it.&lt;/P&gt;
&lt;P&gt;If you want to put a new filter according to your needs, you can define one. Here is publish_document filter instance:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;&amp;lt;filter id="publish_document"&amp;gt;
  &amp;lt;rule grant="true"&amp;gt;
    &amp;lt;facet&amp;gt;Publishable&amp;lt;/facet&amp;gt;
  &amp;lt;/rule&amp;gt;
&amp;lt;/filter&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Hope that it can help!&lt;/P&gt;</description>
      <pubDate>Wed, 19 Dec 2012 01:15:38 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/how-do-you-turn-off-or-ignore-a-facet-on-a-new-document-type/m-p/313127#M128</guid>
      <dc:creator>Vladimir_Pasqui</dc:creator>
      <dc:date>2012-12-19T01:15:38Z</dc:date>
    </item>
    <item>
      <title>Re: How do you turn off or ignore a facet on a new Document type?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/how-do-you-turn-off-or-ignore-a-facet-on-a-new-document-type/m-p/313128#M129</link>
      <description>&lt;P&gt;Thank you so much. It worked.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Dec 2012 15:40:45 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/how-do-you-turn-off-or-ignore-a-facet-on-a-new-document-type/m-p/313128#M129</guid>
      <dc:creator>joannadark_</dc:creator>
      <dc:date>2012-12-19T15:40:45Z</dc:date>
    </item>
  </channel>
</rss>

