|
View:
New views
5 Messages
—
Rating Filter:
Alert me
|
|
|
Remove download - print - exportI want to know how remove the possibility to download or print or export a document in nuxeo?! Windows Live Today: Resta aggiornato sulle attività dei tuoi amici su Flickr, Dada e MySpace _______________________________________________ ECM mailing list ECM@... http://lists.nuxeo.com/mailman/listinfo/ecm To unsubscribe, go to http://lists.nuxeo.com/mailman/options/ecm |
|
|
Re: Remove download - print - exportHi,These actions are defined in various modules (in action-contrib.xml files), as being part of DOCUMENT_UPPER_ACTION category. You can disable them in your own contribution: <action id="the_action_id" enabled="false" /> C. _______________________________________________ ECM mailing list ECM@... http://lists.nuxeo.com/mailman/listinfo/ecm To unsubscribe, go to http://lists.nuxeo.com/mailman/options/ecm |
|
|
Re: Remove download - print - exportI want to remove in the mode phisical the icon. Any idea? css? xhtml? Thank you Date: Mon, 9 Nov 2009 14:27:09 +0200 From: cbaican@... To: fbo_nx@... CC: ecm@... Subject: Re: [Ecm] Remove download - print - export Hi,These actions are defined in various modules (in action-contrib.xml files), as being part of DOCUMENT_UPPER_ACTION category. You can disable them in your own contribution: <action id="the_action_id" enabled="false" /> C. Windows Live Today: Resta aggiornato sulle attività dei tuoi amici su Flickr, Dada e MySpace _______________________________________________ ECM mailing list ECM@... http://lists.nuxeo.com/mailman/listinfo/ecm To unsubscribe, go to http://lists.nuxeo.com/mailman/options/ecm |
|
|
Re: Remove download - print - exportI think problem can be in order of merging of <actions>.
If you write <action id="the_action_id" enabled="false" /> and your contribution is processed before other similar contribution, like:
<action id="the_action_id" ><!--enabled="true" is by default --> <filter .../> </...> then actions will be merged and final result will be with enabled="true".
I think one solution is to make your component to depend ( <component ...><required> ...</required>... ) on all other components that contributes this action. I think this is not good solution if action is contributed in many not self related plugins.
Other solution is to make filter that is always denying and attach it to the action. Finally you can debug ActionService (by memory, I'm not sure if this is the exact name) in order to inspect why action is available/enabled and order of action contributions.
Good luck.
On Tue, Nov 10, 2009 at 11:35 AM, Federica Boffa <fbo_nx@...> wrote:
_______________________________________________ ECM mailing list ECM@... http://lists.nuxeo.com/mailman/listinfo/ecm To unsubscribe, go to http://lists.nuxeo.com/mailman/options/ecm |
|
|
Re: Remove download - print - export<action id="sendEmail" link="send_email" order="17" enabled="false" label="action.email.document" icon="/icons/mail.gif"> <category>DOCUMENT_UPPER_ACTION</category> <filter-id>no_action</filter-id> </action> <action id="POPUP_sendEmail" link="javascript:doSendEmail" order="150" enabled="false" label="action.email.document" icon="/icons/mail.gif"> <category>POPUP</category> <filter-id>no_action</filter-id> </action> and this: <filter id="no_action" append="true"> <rule grant="false"> <type>Documento</type> <type>Corrispondenza</type> <type>Contabile</type> <type>Dichiarazione</type> <type>Docamministrazione</type> <type>Docbancario</type> <type>Doccreditore</type> <type>Docdebitore</type> <type>Docfornitore</type> <type>Docgenerale</type> <type>Docstipendio</type> <type>Doccreditore</type> </rule> </filter> But the icon email is visible again. :-( From: ptanov@... Date: Tue, 10 Nov 2009 12:28:03 +0200 Subject: Re: [Ecm] Remove download - print - export To: fbo_nx@... CC: ecm@... I think problem can be in order of merging of <actions>. If you write <action id="the_action_id" enabled="false" /> and your contribution is processed before other similar contribution, like:
<action id="the_action_id" ><!--enabled="true" is by default --> <filter .../> </...> then actions will be merged and final result will be with enabled="true".
I think one solution is to make your component to depend ( <component ...><required> ...</required>... ) on all other components that contributes this action. I think this is not good solution if action is contributed in many not self related plugins.
Other solution is to make filter that is always denying and attach it to the action. Finally you can debug ActionService (by memory, I'm not sure if this is the exact name) in order to inspect why action is available/enabled and order of action contributions.
Good luck.
On Tue, Nov 10, 2009 at 11:35 AM, Federica Boffa <fbo_nx@...> wrote:
Doretta Doretta ti "cerca"! Vieni a trovarla sul suo Spaces! _______________________________________________ ECM mailing list ECM@... http://lists.nuxeo.com/mailman/listinfo/ecm To unsubscribe, go to http://lists.nuxeo.com/mailman/options/ecm |
| Free embeddable forum powered by Nabble | Forum Help |