Skip to content

Block variation values in twig #178

Description

@TheMaaarc

Currently the variables that I can access through TWIG (in the administration) have always the value that was entered by the user, even if it is overwritten by the selected variation.

Example

If I write xyz in the variation-textfield of the TextBlock and then switch the BlockVariation to intro, I expect the variable accessible through TWIG ({{cfgs.variation}}) to be lead but it is xyz.

TextBlock::variations()
        ->add('lead', 'Intro')->cfgs(['variation' => 'lead'])
        ->register(),

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions