Can't display alert messages across all pages in customer-facing portal
Hello there,
I would like to have the messages for any given user's "limit-reached" alerts display at the top of the screen across all pages until they either upgrade their plan or close the alert manually.
My questions:
1. Can anyone confirm that the alert.message value should be available site-wide?
2. Assuming that these alert messages are available site-wide, how would I access them? Here is the test code I'm using....
<h1>APPLICATION ALERTS</h1>
{% for application in current_account.applications %}
THIS IS AN APPLICATION: {{ application.name }}<br>
{% for alert in application.alerts %}
THIS IS AN ALERT:<br>
{{alert.message}}
{% endfor %}
{% endfor %}
...and below is what shows up on screen:
THIS IS AN APPLICATION: Application Alert Test
THIS IS AN ALERT:
Liquid error: undefined method to_liquid' for # THIS IS AN ALERT:
to_liquid' for # THIS IS AN ALERT:
Liquid error: undefined method
Liquid error: undefined method to_liquid' for # THIS IS AN ALERT:
to_liquid' for #
Liquid error: undefined method
Anyone have any ideas with regards to these 2 questions?
Thanks!
Doron