-
-
Notifications
You must be signed in to change notification settings - Fork 543
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
Modifier doesn't accept parameter #2505
Comments
The In a modifier we'd manually see if the value (ie. the string However this is pretty inconsistent, so maybe it should just work like you're expecting. |
That'd be a great enhancement. SummaryI'm expecting variables to parse before they are passed to the modifier. The same way it already works with tags. ExampleModifier syntax: {{ title :translate="site:short_locale" }}
or
{{ title translate="{site:short_locale}" }}
'sites' => [
'default' => [
'name' => 'English',
'locale' => 'en_US',
'url' => '/',
],
] |
Still a great enhancement idea. |
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 isnull
:The modifier
$params
in this example is{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
The text was updated successfully, but these errors were encountered: