This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.
Is there any way to get the flash messages to disappear, say after 5 seconds? So people don't have to manually click the "x".
Basically I'd love it if the frontend theme had flash messages that looked and acted like the backend.
I looked through the backend code and there's like a million references to flash messages, so I have no idea what I have to copy to my frontend theme.
Last updated
Kane said:
Basically I'd love it if the frontend theme had flash messages that looked and acted like the backend.
I looked through the backend code and there's like a million references to flash messages, so I have no idea what I have to copy to my frontend theme.
You could try this
{% flash %}
<p data-control="flash-message" data-interval="10" class="{{ type == 'error' ? 'danger' : type }}">{{ message }}<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button></p>
{% endflash %}
1-4 of 4