Does the variable replacement support customize variables? And fallback to other variables?
סיכום מבוסס בינה מלאכותית
In a discussion about whether templates support custom variables, hawm asks if variable replacement can handle custom variables and fallbacks. saquetim clarifies that only predefined variables are currently supported, with no fallback mechanism, and invites hawm to explain their use case. hawm explains they want to use templates in wiki posts to avoid repeating content like Name, Address, and Opening Hours across multiple community library wikis, suggesting custom variables could streamline updates. They also propose letting admins define custom variables similar to pre-filled ones. nathank praises the plugin and suggests adding two new variables — my_first_name and reply_to_first_name — to enable more personalized, friendly replies, referencing a JavaScript method for splitting names. saquetim thanks both users, acknowledges the positive feedback, and confirms they’re collecting ideas for future improvements — though no immediate commitments are made to add the suggested variables.
No, only the specified variables are available and it is not possible to fallback to another variable.
What kind of customized variables do you have in mind?
I’d like to use the templates in wiki posts. For example, we have three wikis about the community library and don’t want to repeat ourselves writing down the same field many times and updating it at once.
Like this:
Name: %{name}
Address: %{address}
Opening Hours: %{opening_hours}
Of cause, we could also share the same style in one template.
And I may get your point, allowing the admin to add customized variables to work like other Pre-filled variables also a good idea.
Brilliant plugin! It really takes the canned replies to the next level.
Would you consider adding a couple of variables? These would be very helpful in places / situations where using just a first name is considered much more friendly (and appropriate).
- my_first_name
- reply_to_first_name
This might be of some help:
Thanks! The feedback has been very positive so far!
We are gathering ideas to improve the plugin to decide what to do next. I can’t say I’ll add them at the moment but I’m definitively taking notes.