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

Allow Expressions in Appearance Configuration #77

Open
dpfaffenbauer opened this issue Sep 6, 2018 · 0 comments
Open

Allow Expressions in Appearance Configuration #77

dpfaffenbauer opened this issue Sep 6, 2018 · 0 comments

Comments

@dpfaffenbauer
Copy link
Contributor

Q A
Bug report? no
Feature request? yes
BC Break report? yes
RFC? yes

Having a configuration like this to have only certain bricks for certain "configs" could be easier done using expression engine.

toolbox:
    areas_appearance:
        newsletter:
            allowed:
                - newsletter_image
                - newsletter_columns
                - newsletter_text
                - newsletter_blub
       newsletter:
            allowed:
                - b2b_blub
                - b2b_blab
                - b2b_foo
                - b2b_bar

like this:

toolbox:
    areas_appearance:
        newsletter:
            allowed:
                - @=strpos(areaBrickId, 'newsletter_') == 0
        b2b:
            allowed:
                - @=strpos(areaBrickId, 'b2b_') == 0

Allowed values per configuration could actually be calculated within the container building time. If you like that, I could create a PR. This could also affect groups of bricks.

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

2 participants