Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No way to add a new action to folder contents #1269

Open
djay opened this issue Dec 1, 2015 · 3 comments
Open

No way to add a new action to folder contents #1269

djay opened this issue Dec 1, 2015 · 3 comments

Comments

@djay
Copy link
Member

djay commented Dec 1, 2015

User problem (integrators)

There used to be a way in plone plugins to add additional actions to folder contents. (portal_actions/folder_buttons). This has disappeared. In many cases the addon author will want to make something avaiable in that that UI not just in the toolbar actions.
Many existing plugins will break as they expect folder_actions to be there

Options

  1. reinstate portal_actions/folder_actions.
  2. Do something with the registry? but why? portal_actions works and is still supported in other ways.
@vangheem
Copy link
Member

You can add custom actions. Just not with portal actions.
On Dec 1, 2015 4:10 AM, "Dylan Jay" notifications@github.com wrote:

User problem (integrators)

There used to be a way in plone plugins to add additional actions to
folder contents. (portal_actions/folder_buttons). This has disappeared. In
many cases the addon author will want to make something avaiable in that
that UI not just in the toolbar actions.
Many existing plugins will break as they expect folder_actions to be there
Options

  1. reinstate portal_actions/folder_actions.
  2. Do something with the registry? but why? portal_actions works and
    is still supported in other ways.


Reply to this email directly or view it on GitHub
#1269.

@djay
Copy link
Member Author

djay commented Dec 11, 2015

Why not use portal_actions? Is it documented?
Portal_actions hasn’t gone away and I don’t think there is a plan to get rid of it right so why not keep using it? Its confusing if there are two different ways to add actions to the toolbar and the folder contents.

@ida
Copy link
Member

ida commented Sep 19, 2018

Confirming regression. All actions show up in the new control-panel, just not folder-buttons.
Likely because folder_contents is now entirely replaced with a new technique.
It is possible to add folder-buttons-actions, they show up in the controlpanel, but not in folder_contents.
Other action-definitions seem to work, at least with object-buttons. Example actions.xml:

<?xml version="1.0"?>
<object name="portal_actions" meta_type="Plone Actions Tool"
   xmlns:i18n="http://xml.zope.org/namespaces/i18n">
    <object name="object_buttons" meta_type="CMF Action Category">
 
       <!-- This works as ususal.-->

    </object>
    <object name="folder_buttons" meta_type="CMF Action Category">

        <!-- Entries show up in actions-control-panel, but not in `folder_contents`. -->

    </object>
</object>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants