plone / Products.CMFPlone

The core of the Plone content management system
https://plone.org
GNU General Public License v2.0
246 stars 187 forks source link

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

Open djay opened 8 years ago

djay commented 8 years ago

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 commented 8 years ago

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 https://github.com/plone/Products.CMFPlone/issues/1269.

djay commented 8 years ago

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 commented 6 years ago

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>