Skip to content

Central place for defining crop variants #554

Description

@codemonkey1988

Is your feature request related to a problem? Please describe.
YAML itself is a static format. It might be useful to manipulate the data array provided by the content blocks YAML file to replace or enhance the configuration before it is processed.

In my case, I use it to replace the cropVariants property. I like to have my crop variants configured in a central place with an identifier. In the YAML file, I only add the identifier as a cropping variant. By calling an event, I added using composer patches, I am able to replace this identifier with the actual array structure the extension expects.

Describe the solution you'd like
Adding an event after YAML parsing that allows the manipulation of the data.

Describe alternatives you've considered
I guess I can keep up patching every system I maintain ^^

Additional context
It would be nice to have this backported to 1.x but not mandatory.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions