TracCloudWhatsNew2022-12-07 1: Difference between revisions

From Redrock Wiki

TracCloudWhatsNew2022-12-07 1
No edit summary
Tag: Redirect target changed
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{TracCloudWhatsNewTABS}}
#REDIRECT [[TracCloud:_Scheduling_Preferences]]
{| 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-12-07 | Twig Support in Max Appt Rule Failure Message<br><br></b>
 
The Max Appointment Rule failure message now supports Twig, this includes the ability to display student and consultant details ([[TracCloudGuideProfilePrefsTwig|more info]]), and the ability to change the message depending on which rule was broken. This article will cover the latter.<br><br>
 
Each Appt Rule now has its own ID number, this can be found in the top-right corner of the rule itself. You will need to re-save this rule if it existed prior to December 7th 2022 in order to use the ID number in the next step.
<br>
[[File:9256678.png|500px]]
<br><br>
 
Once you have your ID number(s), you can modify your failure message. For example:<br><br>
 
<nowiki>{% for failRule in failRules %}</nowiki><br>
<nowiki>{% if failRule.id == "1234ABCD" %}</nowiki><br>
<nowiki>Description for this rule</nowiki><br>
<nowiki>{% elseif failRule.id == "ABCD1234" %}</nowiki><br>
<nowiki>Description for that rule</nowiki><br>
<nowiki>{% endif %}</nowiki><br>
<nowiki>{% endfor %}</nowiki><br>
 
<br><br>
 
[[File:4560889.png|700px]]
<br>
[[File:1744415.png|600px]]
 
</span>
</onlyinclude>
|}
[[Category:TracCloud]]

Latest revision as of 15:54, 22 November 2024