Skip to content

Modifier doesn't accept parameter #2505

Description

@aerni

Bug Description

I'm trying to pass {{ site:short_locale }} as a parameter to a custom modifier. Is this even supposed to work?

The modifier $params in this example is null:

{{ title :translate="site:short_locale" }}

The modifier $params in this example is {site:short_locale}:

{{ title translate="{site:short_locale}" }}

How to Reproduce

Create a modifier and try to pass the parameter like in the example above.

Environment

Statamic 3.0.12 Pro
Laravel 7.28.3
PHP 7.4.9
aerni/translator dev-feature/statamic-v3

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