I write this:
<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: [email protected]
Date: Tue, 10 Nov 2009 12:28:03 +0200
Subject: Re: [Ecm] Remove download - print - export
To: [email protected]
CC: [email protected]
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 <[email protected]> wrote:
I write the code in action-contrib.xml but is not functionally...the icons are
visible again
I 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: [email protected]
To: [email protected]
CC: [email protected]
Subject: Re: [Ecm] Remove download - print - export
Federica Boffa wrote:
Hi,
I 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
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm
To unsubscribe, go to http://lists.nuxeo.com/mailman/options/ecm
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
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm
To unsubscribe, go to http://lists.nuxeo.com/mailman/options/ecm
_________________________________________________________________
Curiosità , trucchi e consigli per il tuo Messenger!
http://www.messenger.it_______________________________________________
ECM mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm
To unsubscribe, go to http://lists.nuxeo.com/mailman/options/ecm