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

Enable seamless adding of collected info classes & objects #5

Closed
emodric opened this issue Dec 15, 2016 · 3 comments
Closed

Enable seamless adding of collected info classes & objects #5

emodric opened this issue Dec 15, 2016 · 3 comments

Comments

@emodric
Copy link
Member

emodric commented Dec 15, 2016

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
Copy link
Contributor

MarioBlazek commented Dec 19, 2016

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
Copy link
Member Author

emodric commented Dec 22, 2016

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
Copy link
Contributor

Implemented as described above.

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

No branches or pull requests

2 participants