TracCloudWhatsNew2022-10-04 1: Difference between revisions

From Redrock Wiki

TracCloudWhatsNew2022-10-04 1
(Created page with "{{TracCloudWhatsNewTABS}} {| style="width:100%; vertical-align:top; " | style="width:400px; vertical-align:top; padding:2px 15px 2px 2px;" | {{TracCloudWhatsOldTOC}} | style="...")
 
(Redirected page to TracCloudGuideProfilePrefsTwig)
Tag: New redirect
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{TracCloudWhatsNewTABS}}
#REDIRECT [[TracCloudGuideProfilePrefsTwig]]
{| style="width:100%; vertical-align:top; "
| style="width:400px; vertical-align:top; padding:2px 15px 2px 2px;" | {{TracCloudWhatsOldTOC}}
| style="vertical-align:top; padding:20px 20px 20px 2px;" |
{| style="width:100%; vertical-align:top; "
<onlyinclude>
<span style="font-size:20px">
 
<b>2022-10-04 | Include labels in selected SAGE Reasons/Recommendations<br><br></b>
 
Two new Twig arrays have been added, <b>ReasonsAndLabels</b> and <b>RecommendationsAndLabels</b>, which can be used to include labels in your SAGE emails.<br><br>
 
The standard <b>Reasons</b> and <b>Recommendations</b> arrays will look like this when sent over email.<br>
 
[[File:4655707.png|300px]]<br>
 
<nowiki>Reasons selected:<BR></nowiki><br>
<nowiki>{% for key,value in Reasons %}</nowiki><br>
<nowiki>    {{ value }} <br></nowiki><br>
<nowiki>{% endfor %}</nowiki><br><br>
 
<b>ReasonsAndLabels</b> and <b>RecommendationsAndLabels</b> will look like this.<BR>
 
[[File:6390095.png|300px]]<br>
 
<nowiki>Reasons selected:<BR></nowiki><br>
<nowiki>{% for key,value in ReasonsAndLabels %}</nowiki><br>
<nowiki>    {{ value }} <br></nowiki><br>
<nowiki>{% endfor %}</nowiki><br><br>
 
<i>if</i> statements can also be used to further format the labels.<br>
 
[[File:6160497.png|300px]]<br>
 
<nowiki>Reasons selected:<BR></nowiki><br>
<nowiki>{% for key,value in ReasonsAndLabels %}</nowiki><br>
<nowiki>{% if value == "Grade" or value == "Attendance" or value == "Engagement" %}</nowiki><br>
<nowiki><i><b></nowiki><br>
<nowiki>{% endif %}</nowiki><br>
<nowiki>    {{ value }} <br></nowiki><br>
<nowiki>{% if value == "Grade" or value == "Attendance" or value == "Engagement" %}</nowiki><br>
<nowiki></i></b></nowiki><br>
<nowiki>{% endif %}</nowiki><br>
<nowiki>{% endfor %}</nowiki><br>
 
</span>
</onlyinclude>
|}

Latest revision as of 15:57, 18 November 2024