Well, let's move the login action from users action provider to
site_actions. The steps I followed were:
1. Export the actions.xml file. Go to portal_setup > Export and select
the Action Providers.
2. Open the generated actions.xml file and search for the action you
want to move, something like:
<object name="login" meta_type="CMF Action" i18n:domain="plone">
3. Now find the provider you want to move your action into:
<object name="site_actions" meta_type="CMF Action Category">
4. Then write your own actions.xml file that will be in your product's
profile/default folder. You only need to include what changes, not the
whole file so:
<?xml version="1.0"?>
<object name="portal_actions" meta_type="Plone Actions Tool"
xmlns:i18n="
http://xml.zope.org/namespaces/i18n">
<object name="site_actions" meta_type="CMF Action Category">
<property name="title"></property>
<object name="login" meta_type="CMF Action" i18n:domain="plone">
<property name="title" i18n:translate="">Log in</property>
<property name="description" i18n:translate=""></property>
<property name="url_expr">string:${portal_url}/login_form</
property>
<property name="icon_expr"></property>
<property name="available_expr">python:member is None</property>
<property name="permissions">
<element value="View"/>
</property>
<property name="visible">True</property>
</object>
<object name="logout" meta_type="CMF Action" i18n:domain="plone">
<property name="title" i18n:translate="">Log out</property>
<property name="description" i18n:translate=""></property>
<property name="url_expr">string:${portal_url}/logout</property>
<property name="icon_expr"></property>
<property name="available_expr">python:member is not None</
property>
<property name="permissions">
<element value="View"/>
</property>
<property name="visible">True</property>
</object>
</object>
</object>
5. If you want to hide the login action from its original provider (I
didn't do it beacuse I hid the whole section), as Veda proposes, I
think you only have to include something like:
<object name="users" meta_type="CMF Action Category">
<property name="title"></property>
<object name="login" meta_type="CMF Action" i18n:domain="plone">
<property name="title" i18n:translate="">Log in</property>
<property name="description" i18n:translate=""></property>
<property name="url_expr">string:${portal_url}/login_form</
property>
<property name="icon_expr"></property>
<property name="available_expr">python:member is None</property>
<property name="permissions">
<element value="View"/>
</property>
<property name="visible">False</property> <!----------- LOOK HERE
------------>
</object>
</object>
Perhaps even this is enough:
<object name="users" meta_type="CMF Action Category">
<property name="title"></property>
<object name="login" meta_type="CMF Action" i18n:domain="plone">
<property name="visible">False</property>
</object>
</object>
Hope this helps,
Jesús
On Jul 28, 12:31 pm, "steven shade" <
steven.sha...@...>
wrote:
> Hi
>
> Can you explain your process here, I am looking to do something similair.
>
> Thanks
> Steven
>
> On Mon, Jul 28, 2008 at 11:21 AM, Jesus V. <
jes...@...> wrote:
> > Thank you for the reply. With your suggestion and Veda's explanation
> > (thanks to her too) I managed to solve it.
>
> > Jesús
>
> > On Jul 27, 6:05 pm, Alex Clark <
acl...@...> wrote:
> > > Hi Jesús,
>
> > > You can probably do this with GenericSetup:
>
> > > - Make the change you want through the web.
> > > - Export the actions profile.
> > > - Include it in profiles/default in your theme product.
>
> > > HTH,
>
> > > Alex
>
> > > On 2008-07-25, Jesus V. <
jes...@...> wrote:
>
> > > > Hi all,
>
> > > > I'm creating a new theme and I would like to move the plone_setup
> > > > (Site setup) action from site_actions to portal_tabs programmatically,
> > > > that is, I want it to be move when I install and activate the new
> > > > theme/skin.
>
> > > > How could I do it?
>
> > > > Thank you,
> > > > Jesús
>
> > > --
> > > Alex Clark ·
http://aclark.net> > > Register for Plone Conference 2008 ·
http://ploneconf2008.eventbrite.com>
> > > -------------------------------------------------------------------------
> > > This SF.Net email is sponsored by the Moblin Your Move Developer's
> > challenge
> > > Build the coolest Linux based applications with Moblin SDK & win great
> > prizes
> > > Grand prize is a trip for two to an Open Source event anywhere in the
> > worldhttp://moblin-contest.org/redirect.php?banner_id=100&url=/
> > > _______________________________________________
> > > Plone-Users mailing list
> > >
Plone-Us...@...://
> > lists.sourceforge.net/lists/listinfo/plone-users
>
> > -------------------------------------------------------------------------
> > This SF.Net email is sponsored by the Moblin Your Move Developer's
> > challenge
> > Build the coolest Linux based applications with Moblin SDK & win great
> > prizes
> > Grand prize is a trip for two to an Open Source event anywhere in the world
> >
http://moblin-contest.org/redirect.php?banner_id=100&url=/> > _______________________________________________
> > Plone-Users mailing list
> >
Plone-Us...@...
> >
https://lists.sourceforge.net/lists/listinfo/plone-users>
>
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the worldhttp://moblin-contest.org/redirect.php?banner_id=100&url=/
>
> _______________________________________________
> Plone-Users mailing list
>
Plone-Us...@...://lists.sourceforge.net/lists/listinfo/plone-users
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/_______________________________________________
Plone-Users mailing list
Plone-Users@...
https://lists.sourceforge.net/lists/listinfo/plone-users