8 May 13:05
Re: Action id="logout" in the actions-contrib.xml
From: Florent Guillaume <fg@...>
Subject: Re: Action id="logout" in the actions-contrib.xml
Newsgroups: gmane.comp.cms.nuxeo.general
Date: 2008-05-08 11:05:29 GMT
Subject: Re: Action id="logout" in the actions-contrib.xml
Newsgroups: gmane.comp.cms.nuxeo.general
Date: 2008-05-08 11:05:29 GMT
This should work.
Are you sure your component (.xml file) is read and you don't have a
duplicate component id?
Please check the logs for your jar name and see if there are any error
messages just below its deployment.
Florent
On 7 May 2008, at 17:19, Daniel CERQUEIRA wrote:
> Hi all,
>
> I try to define the <action id="logout"> at false (enabled="false")
> in the "actions-contrib.xml" for not to show in the header
> (USER_SERVICES) " Log out " and " Log in ".
> But I always see in the header "Log out " and "Log in".
>
> It's normal?
>
> Thx
>
>
> My XML CODE
>
> actions-contrib.xml
> ------------------------------------------------------------------------------------------
>
> <extension target="org.nuxeo.ecm.platform.actions.ActionService"
> point="actions">
> ....
> ...
> ...
>
> <action id="logout" enabled="false" />
>
> ...
> ...
> ...
>
> </extension>
>
>
>
> The NUXEO CODE
>
> actions-contrib.xml
> ----------------------------------------------------------------------------------------------------
> <extension target="org.nuxeo.ecm.platform.actions.ActionService"
> point="actions">
>
> <!-- server actions -->
>
> <action id="user_dashboard" link="user_dashboard" enabled="true"
> label="command.user_dashboard" order="10">
> <category>USER_SERVICES</category>
> <filter id="user_dashboard_enabled">
> <rule grant="true">
> <condition>#{userServicesContext.dashboardEnabled}</
> condition>
> </rule>
> </filter>
> </action>
>
> <action id="logout" link="#{loginLogoutAction.logout}"
> enabled="true"
> label="command.logout" order="200">
> <category>USER_SERVICES</category>
> </action>
>
> <action id="user_manager" link="#{userManagerActions.viewUsers}"
> enabled="true" label="command.manageMembers" order="20">
> <category>USER_SERVICES</category>
> <filter id="user_manager">
> <rule grant="true">
> <condition>#{userServicesContext.userManagerEnabled}</
> condition>
> </rule>
> </filter>
> </action>
>
> .....
> ....
> ....
> </extension>
>
>
>
> --
> CERQUEIRA Daniel
> Asyres
> 6, 8, 10 rue Troyon
> 92316 Sèvres
> Tel : 01.55.64.05.64 _______________________________________________
> ECM mailing list
> ECM@...
> http://lists.nuxeo.com/mailman/listinfo/ecm
--
--
Florent Guillaume, Director of R&D, Nuxeo
Open Source Enterprise Content Management (ECM)
http://www.nuxeo.com http://www.nuxeo.org +33 1 40 33 79 87
RSS Feed