TracCloudWhatsNew2022-10-04 1: Difference between revisions

From Redrock Wiki

TracCloudWhatsNew2022-10-04 1
No edit summary
No edit summary
Line 1: Line 1:
{{TracCloudWhatsNewTABS}}
{{TracCloudWhatsNewTABS}}
{| style="width:100%; vertical-align:top; "
<div class="categoryExtraWide">
| style="width:400px; vertical-align:top; padding:2px 15px 2px 2px;" | {{TracCloudWhatsOldTOC}}
{{TracCloudWhatsOldTOC}}
| style="vertical-align:top; padding:20px 20px 20px 2px;" |
</div>
{| style="width:100%; vertical-align:top; "
<onlyinclude>
<onlyinclude>
<span style="font-size:20px">
<span style="font-size:20px">
Line 46: Line 45:
</span>
</span>
</onlyinclude>
</onlyinclude>
|}
 
[[Category:TracCloud]]
[[Category:TracCloud]]

Revision as of 13:17, 6 November 2023

2022-10-04 | Include labels in selected SAGE Reasons/Recommendations

Two new Twig arrays have been added, ReasonsAndLabels and RecommendationsAndLabels, which can be used to include labels in your SAGE emails.

The standard Reasons and Recommendations arrays will look like this when sent over email.

4655707.png

Reasons selected:<BR>
{% for key,value in Reasons %}
{{ value }} <br>
{% endfor %}

ReasonsAndLabels and RecommendationsAndLabels will look like this.

6390095.png

Reasons selected:<BR>
{% for key,value in ReasonsAndLabels %}
{{ value }} <br>
{% endfor %}

if statements can also be used to further format the labels.

6160497.png

Reasons selected:<BR>
{% for key,value in ReasonsAndLabels %}
{% if value == "Grade" or value == "Attendance" or value == "Engagement" %}
<i><b>
{% endif %}
{{ value }} <br>
{% if value == "Grade" or value == "Attendance" or value == "Engagement" %}
</i></b>
{% endif %}
{% endfor %}