TracCloudWhatsNew2022-12-07 1: Difference between revisions

From Redrock Wiki

TracCloudWhatsNew2022-12-07 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 34: Line 33:
</span>
</span>
</onlyinclude>
</onlyinclude>
|}
 
[[Category:TracCloud]]
[[Category:TracCloud]]

Revision as of 13:20, 6 November 2023

2022-12-07 | Twig Support in Max Appt Rule Failure Message

The Max Appointment Rule failure message now supports Twig, this includes the ability to display student and consultant details (more info), and the ability to change the message depending on which rule was broken. This article will cover the latter.

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.
File:9256678.png

Once you have your ID number(s), you can modify your failure message. For example:

{% for failRule in failRules %}
{% if failRule.id == "1234ABCD" %}
Description for this rule
{% elseif failRule.id == "ABCD1234" %}
Description for that rule
{% endif %}
{% endfor %}



File:4560889.png
File:1744415.png