This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.

Kane
Kane

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".

Kane
Kane

FYI I'm using the 'responsiv-flat' theme.

Kane
Kane

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

tee
tee

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">&times;</button></p>
{% endflash %}

1-4 of 4

You cannot edit posts or make replies: the forum has moved to talk.octobercms.com.