{{ render_field(form.notification_title, class="m-d notification-title", placeholder=settings_application['notification_title']) }}
Title for all notifications
{{ render_field(form.notification_body , rows=5, class="notification-body", placeholder=settings_application['notification_body']) }}
Body for all notifications ‐ You can use Jinja2 templating in the notification title, body and URL, and tokens from below.
Show token/placeholders
Token
Description
{{ '{{base_url}}' }}
The URL of the changedetection.io instance you are running.
{{ '{{watch_url}}' }}
The URL being watched.
{{ '{{watch_uuid}}' }}
The UUID of the watch.
{{ '{{watch_title}}' }}
The title of the watch.
{{ '{{watch_tag}}' }}
The watch label / tag
{{ '{{preview_url}}' }}
The URL of the preview page generated by changedetection.io.
{{ '{{diff_url}}' }}
The URL of the diff output for the watch.
{{ '{{diff}}' }}
The diff output - only changes, additions, and removals
{{ '{{diff_added}}' }}
The diff output - only changes and additions
{{ '{{diff_removed}}' }}
The diff output - only changes and removals
{{ '{{diff_full}}' }}
The diff output - full difference output
{{ '{{diff_patch}}' }}
The diff output - patch in unified format
{{ '{{current_snapshot}}' }}
The current snapshot text contents value, useful when combined with JSON or CSS filters
{{ '{{triggered_text}}' }}
Text that tripped the trigger from filters
{% if extra_notification_token_placeholder_info %}
{% for token in extra_notification_token_placeholder_info %}
{{ '{{' }}{{ token[0] }}{{ '}}' }}
{{ token[1] }}
{% endfor %}
{% endif %}
Warning: Contents of {{ '{{diff}}' }}, {{ '{{diff_removed}}' }}, and {{ '{{diff_added}}' }} depend on how the difference algorithm perceives the change.
For example, an addition or removal could be perceived as a change in some cases. More Here
For JSON payloads, use |tojson without quotes for automatic escaping, for example - { "name": {{ '{{ watch_title|tojson }}' }} }
URL encoding, use |urlencode, for example - gets://hook-website.com/test.php?title={{ '{{ watch_title|urlencode }}' }}
{{ render_field(form.notification_format , class="notification-format") }}
Format for all notifications