netgen / NetgenInformationCollectionBundle

Information collection alike feature for eZ Publish 5/eZ Platform
https://netgen.io
GNU General Public License v2.0
19 stars 8 forks source link

Enable seamless adding of collected info classes & objects #5

Closed emodric closed 7 years ago

emodric commented 7 years ago

Currently, every class that collects info needs to have a config counterpart, which seriously hinders editors ability to add forms on the fly.

It would be great to provide a (configurable) default actions config which would be used for all classes that do not have specific config.

MarioBlazek commented 7 years ago

New configuration example.

netgen_information_collection:
    system:
        default:
            actions:
                default:
                    - email
                    - database
                content_type:
                    ng_feedback_form:
                        - custom_action
                    si_order_spare_part:
                        - custom_action_2

All base action that are shared across all content types must be added under actions -> default tree.

emodric commented 7 years ago

All base action that are shared across all content types must be added under actions -> default tree.

I'm not sure this is a good idea.

You can't specify now for example that default action is email, except for a specific content type.

Default list should just be a default, for classes that do not specify the specific list, otherwise specific list is used, without merging it with default.

MarioBlazek commented 7 years ago

Implemented as described above.