This tag is used to set a variable.
name="something" - The name of the variable.
value="something" - The value of the variable you’re setting.
<r:set_var name="archive_month" value="Dec2015" />
You can also set the value by not self-closing the tag:
<r:set_var name="salary_range"> I'm the value </r:set_var>
To expand on the example above, you can also set variables via Custom Data:
<r:set_var name="archive_month"> <r:page:content name="archive_month" /> </r:set_var>
Note: Try not to use dashes (
-) in variable names. Dashes are considered “minus” in logic and can make things confusing.
Last updated on December 10, 2015.
We welcome all questions, feedback and bug reports. If you're having an issue, we usually need the following information:
- A brief description of the issue
- A link to the page where you saw the issue
- Screenshots that illustrate the problem - How do I take a screenshot?