Hi all
My goal is to display a closable banner for confluence, which every user can close and accept. I know, I can do it with this type of message:
<div class="aui-message closeable aui-message-warning">
<p>Message</p>
<button class="aui-icon icon-close" tabindex="0" aria-label="Close"/>
</div>
But this message appears every time a refresh happens for every user.
I also know there are plugins for this like "Announce for Confluence".
But I want to do it by myself. Is there any possibilty by scripting? We have ScriptRunner.
Thanks for every input.
Regards, Dominic
Hi all
I made a few scripts with ScriptRunner and achieved my goal :-)
I've made an article in here: Confluence Banner with ScriptRunner
Regards, Dominic
Hi @Dominic Lagger ,
A simple option would be to use fade-out option instead of closable.
"aui-message fadeout"
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks @Niranjan
This looks cool, but the message comes up every time you refresh. My goal is, that the user has to click away the button and after a refresh, this specific user doesn't get any message again.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Dominic Lagger ,
Not sure, but I believe that it would need a javascript to validate user session. If I were you, I would not spend much effort on it as it is not a value add (at least for me). You can ensure to make the the banner message short and sweet which can make users happy :)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yeah, does sound like a Javascript thing with a cookie in the browser.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.