12-18-2012 01:33 PM
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,
12-18-2012 08:15 PM
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!
12-18-2012 07:29 PM
Hi,
12-18-2012 07:47 PM
Yes, my goal is to hide the publish tab...
12-18-2012 08:15 PM
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!
12-19-2012 10:40 AM
Thank you so much. It worked.
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.