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(),

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions