Hi
In the time that I spent reviewing the docs and trying the usual standard invocations like ${__user.email}
, I could not get either global or template vars to implement in the the html content for this nice plugin, still named internally marcusolsson-dynamictext-panel
after the original author.
Just sending here in case I am missing something obvious.
(What I see in docs is the interpolation and logic for the data returned form the database returned, which is nice but not what I want now).
Am I missing something obvious?
Thanks
E
@allomorphy Please use helpers to access variables as described in the documentation:
Thanks @mikhailvolkov
I had tried the helpers before posting my original question but expected it to just work out of the box for straight var interpolation.
This is what I needed to get going!
{{variable "subject"}}
Thanks for these lovely goodies, will dig further when we need those.
So far on digging, findings from this code:
date formatting
[{{date "1598791377556" "YY-MM-DD"}}]
<br>template
[{{variable "subject"}}]
<br>template mapped to a global
[{{variable "email"}}]
<br>global
{{variable "__user.[1]"}}
<br>variableValue
{{variableValue '${subject}'}}
<br>variableValue
{{variableValue '${__user}'}}
<br>variableValue
{{variable '${__user.login}'}}
printed as follows:
date formatting [24-11-22]
template [115uk@meterbolic.org]
template mapped to a global [da]
global 3
variableValue 115uk@meterbolic.org
variableValue 3
variableValue da
@allomorphy That’s correct. We kept the original implementation from Dynamic Text.
I am not sure if we want to automatically interpolate them in future release. We will consider it, maybe with a checkbox to avoid unexpected behavior.
1 Like