Skip to content

Allow removing elements from a list of values in a record #42

Description

@MrTango

On install we can add values as follows:

<records interface="Products.CMFPlone.interfaces.controlpanel.IFilterSchema" prefix="plone">
    <value key="custom_attributes" purge="false">
      <element>slot</element>
    </value>
</records>

with purge="false" this will only add values.

We need a way to remove elements (values) from a list.
Somthing like this:

 <records interface="Products.CMFPlone.interfaces.controlpanel.IFilterSchema" prefix="plone">
    <value key="custom_attributes" remove="true">
      <element>slot</element>
    </value>
 </records>

or like this

<records interface="Products.CMFPlone.interfaces.controlpanel.IFilterSchema" prefix="plone">
    <value key="custom_attributes">
      <element remove="true">slot</element>
    </value>
 </records>

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions