Difference between revisions of "Variable Syntax"
From SmartWiki
Mark Bridger (talk | contribs) (→Overview) |
Mark Bridger (talk | contribs) (→Overview) |
||
| Line 1: | Line 1: | ||
=Overview= | =Overview= | ||
| − | The Variable Processor in SmartSimple dynamically replaces variable references | + | The Variable Processor in SmartSimple dynamically replaces variable references e.g. |
| + | <pre>{{firstname}}</pre> | ||
| + | |||
| + | with actual values (e.g., John). These variable references can be used throughout the system, allowing the same data to appear consistently in multiple locations. | ||
| + | Previously, variable syntax used the @ symbol as part of the reference. However, this approach is not compatible with the rich text editor. To address this, we are introducing a new syntax that uses | ||
| + | |||
| + | <pre>{{ }}</pre> | ||
| + | |||
| + | instead of the @ symbol. | ||
| − | |||
Below is a table outlining the changes. Note: | Below is a table outlining the changes. Note: | ||
| Line 8: | Line 15: | ||
* The new syntax is currently in development and must be enabled by the SmartSimple team for your system. | * The new syntax is currently in development and must be enabled by the SmartSimple team for your system. | ||
* During this transition, both syntaxes can be used while the new format undergoes testing and refinement. | * During this transition, both syntaxes can be used while the new format undergoes testing and refinement. | ||
| + | |||
| + | |||
| + | |||
[[Category:Variables]] | [[Category:Variables]] | ||
Revision as of 17:01, 15 December 2025
Overview
The Variable Processor in SmartSimple dynamically replaces variable references e.g.
{{firstname}}
with actual values (e.g., John). These variable references can be used throughout the system, allowing the same data to appear consistently in multiple locations. Previously, variable syntax used the @ symbol as part of the reference. However, this approach is not compatible with the rich text editor. To address this, we are introducing a new syntax that uses
{{ }}
instead of the @ symbol.
Below is a table outlining the changes. Note:
- The new syntax is currently in development and must be enabled by the SmartSimple team for your system.
- During this transition, both syntaxes can be used while the new format undergoes testing and refinement.