TracCloudWhatsNew2022-12-07 1: Difference between revisions

From Redrock Wiki

TracCloudWhatsNew2022-12-07 1
No edit summary
No edit summary
Line 34: Line 34:
</onlyinclude>
</onlyinclude>


[[Category:TracCloud]]
[[Category:TracCloud_Blog]]

Revision as of 13:51, 7 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