TracCloudWhatsNew2022-10-04 1: Difference between revisions

From Redrock Wiki

TracCloudWhatsNew2022-10-04 1
No edit summary
(Redirected page to TracCloudGuideProfilePrefsTwig)
Tag: New redirect
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{TracCloudWhatsNewTABS}}
#REDIRECT [[TracCloudGuideProfilePrefsTwig]]
<div class="categoryExtraWide">
{{TracCloudWhatsOldTOC}}
</div>
<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>
 
[[Category:TracCloud]]

Latest revision as of 15:57, 18 November 2024