Page 1 of 1

Information message

Posted: 03 Jun 2016, 05:09
by MikeR
Hi Karl,

I'm interested by a functionality I hope you'll be able to add.

Is it possible to have an automatic message (with text and an small image) when a visitor comes to the website (homepage) ?

The goal is to inform about new exhibition, new photos, new event...

I don't know if you're agree with the idea and if it's easy to implement.

I don't know which solution : pop-up, ...

Re: Information message

Posted: 03 Jun 2016, 05:15
by mjau-mjau
A global "announcement" plugin is a good idea, and would not be too hard to implement. I will add to list, and will look into it for next major update likely within a couple of months (after we launch new imagevuex website). There are many feasible ways to display a global notification: popup/modal box, or a dismissible notification at top/bottom screen, possibly as plugin options. Let me know if you have further suggestions ...

Re: Information message

Posted: 03 Jun 2016, 05:20
by MikeR
great !!

I don't have any experience about which kind of information message is better but I have no doubt the solution will be good :D

Re: Information message

Posted: 03 Jun 2016, 16:21
by davidlehner
It would be great if we can to choose the message position and size. Banner on the top, block in the center or LT, LB, RT, RB

Re: Information message

Posted: 04 Jun 2016, 07:06
by mjau-mjau
davidlehner wrote:It would be great if we can to choose the message position and size. Banner on the top, block in the center or LT, LB, RT, RB
TOP or BOTTOM at full width, yes ... I'm having problems envisioning announcements in corners though, and can't see how that would be functional or useful. It's important to keep settings at a minimum, and focus on a well-planned, well-designed implementation.

Re: Information message

Posted: 22 Sep 2016, 01:20
by mjau-mjau
For reference, since X3 release [0.19], you can use the new modal plugin to display an announcement on page-load. View the modal plugin in action from the demo sample page (scroll down to "modal plugin").

To use the modal-plugin as a global announcement, you would generally add the following code to main settings -> footer:
Code
<div id="myModal" class="reveal-modal" data-reveal data-reveal-open aria-hidden="true" role="dialog">
<a class="close-reveal-modal" aria-label="Close"><i class="fa fa-close"></i></a>
<h2>TITLE</h2>
<p>Add your modal content here. Any HTML is supported.</p>
</div>
They key attribute here is data-reveal-open, which tells the alert-box to immediately open on page-load. Optionally, you could instead use data-reveal-open-once, which will do the same, but the visitors browser will remember if the modal was opened and make sure it never displays again.

Re: Information message

Posted: 23 Sep 2016, 08:58
by andreamarucci
Wow! Beautiful tip! That way I can notice all my users about the latest Gallery news. Thank you!!!

Re: Information message

Posted: 26 Sep 2016, 06:44
by andreamarucci
Karl, once I've changed the code to display something other, how can I reset the cookie so that when I change the notice it appear again?

Re: Information message

Posted: 26 Sep 2016, 11:33
by mjau-mjau
andreamarucci wrote:Karl, once I've changed the code to display something other, how can I reset the cookie so that when I change the notice it appear again?
Give the modal a new ID:
Code
id="myModal2"
Just increment the ID each time you want a fresh modal. Modals opened are stored in visitors browser per ID.

Re: Information message

Posted: 27 Sep 2016, 09:28
by andreamarucci
Fantastic! Thanks!