cancel
Showing results for 
Search instead for 
Did you mean: 

How do you turn off or ignore a facet on a new Document type?

joannadark_
Confirmed Champ
Confirmed Champ

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?

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...

<doctype extends="Document" name="myFile">
  <schema name="common"/>
  <schema name="file"/>
  <schema name="dublincore"/>
  <schema name="uid"/>
  <schema name="files"/>
  <facet name="Downloadable"/>
  <facet name="Versionable"/>
  <facet name="Commentable"/>
  <facet name="HasRelatedText"/>
</doctype>

I do not want to overwrite the original File Document type. Thanks,

1 ACCEPTED ANSWER

Vladimir_Pasqui
Star Collaborator
Star Collaborator

Here is the contribution for publish tab:

<action id="TAB_PUBLISH" link="/incl/tabs/document_publish.xhtml" order="53"
        label="action.publish.content" icon="/icons/file.gif">
  <category>VIEW_ACTION_LIST</category>
  <filter-id>publish_document</filter-id>
  <filter-id>mutable_document</filter-id>
</action>

If you want to deactivate it all the time, you can put enable="false" like this way:

<action id="TAB_PUBLISH" enabled="false"/>

And thats it.

If you want to put a new filter according to your needs, you can define one. Here is publish_document filter instance:

<filter id="publish_document">
  <rule grant="true">
    <facet>Publishable</facet>
  </rule>
</filter>

Hope that it can help!

View answer in original post

4 REPLIES 4

Vladimir_Pasqui
Star Collaborator
Star Collaborator

Hi,

joannadark_
Confirmed Champ
Confirmed Champ

Yes, my goal is to hide the publish tab...

Vladimir_Pasqui
Star Collaborator
Star Collaborator

Here is the contribution for publish tab:

<action id="TAB_PUBLISH" link="/incl/tabs/document_publish.xhtml" order="53"
        label="action.publish.content" icon="/icons/file.gif">
  <category>VIEW_ACTION_LIST</category>
  <filter-id>publish_document</filter-id>
  <filter-id>mutable_document</filter-id>
</action>

If you want to deactivate it all the time, you can put enable="false" like this way:

<action id="TAB_PUBLISH" enabled="false"/>

And thats it.

If you want to put a new filter according to your needs, you can define one. Here is publish_document filter instance:

<filter id="publish_document">
  <rule grant="true">
    <facet>Publishable</facet>
  </rule>
</filter>

Hope that it can help!

Thank you so much. It worked.

Getting started

Attention: Blogs & Forums are in READ-ONLY mode from Oct 9-19 as we transition to our new platform. Learn more.

Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.