edalzell / statamic-variable

MIT License
5 stars 1 forks source link

Always produces default value #1

Open radovanobal opened 3 years ago

radovanobal commented 3 years ago

Whatever you set with {{ variable:variableName :value="custom data"}}

Will always return the default value {{ variable:var_to_set default="always this" }}

Statamic 3.0.34 Php: 7.4 This is the only addon

radovanobal commented 3 years ago

turns out the documentation is wrong, it needs to be set without ":"

working code: {{ variable:var_to_set value="in_scope_variable "}}