09-15-2012 07:21 AM
I want to have the possibility to add comments on published documents. I want comments on source document and published document not shared between them.
How can I do that ?
09-15-2012 07:24 AM
Dear me,
Really interesting as I was asking me the same one.
You have simply to add the following xml fragment into Advanced Setting > XML Extensions > New > Choose a name:
<extension target="org.nuxeo.ecm.platform.actions.ActionService"
point="actions">
<action id="view_comments_myproject" link="/incl/tabs/document_comments.xhtml"
enabled="true" order="80" label="action.view.comments">
<category>VIEW_ACTION_LIST</category>
<filter id="commentable_michelin2">
<rule grant="true">
<type>MyDocType1</type>
<type>MyDocType2</type>
<condition>currentDocument.isProxy()</condition>
</rule>
</filter>
</action>
</extension>
Where MyDocType1 and MyDocType2 are the 2 doc types where you want to have the comments on their proxies.
09-15-2012 07:24 AM
Dear me,
Really interesting as I was asking me the same one.
You have simply to add the following xml fragment into Advanced Setting > XML Extensions > New > Choose a name:
<extension target="org.nuxeo.ecm.platform.actions.ActionService"
point="actions">
<action id="view_comments_myproject" link="/incl/tabs/document_comments.xhtml"
enabled="true" order="80" label="action.view.comments">
<category>VIEW_ACTION_LIST</category>
<filter id="commentable_michelin2">
<rule grant="true">
<type>MyDocType1</type>
<type>MyDocType2</type>
<condition>currentDocument.isProxy()</condition>
</rule>
</filter>
</action>
</extension>
Where MyDocType1 and MyDocType2 are the 2 doc types where you want to have the comments on their proxies.
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.