Post

4 followers Follow
11
Avatar

Simple POPUP change to allow for Slideshows...

Originally from ticket #3190.

Hi.

I was trying to adapt my NEWEXPRESSION magazine to the MAG+ platform, and there I have slideshows but the thumbnails are not below the image. I could do this in HTML but it's too much work to make this for every page of the publication.

I could do this with POPUP but this tool need a small tweak that I believe won't be hard.

OPTION 1

When a POPUP opens, It closes the previous one.

OPTION 2

When a POPUP opens, it sits on TOP of the previous one.

Is it easy to implement any of this in the 3.2 version of the plugin?

Best

Carlos

Carlos Pedro Sant'Ana

Please sign in to leave a comment.

3 comments

0
Avatar

Hi Carlos,

I'll forward this to our developers to see what is possible to implement in future updates!

Regards, Anders

Anders Odevik 0 votes
0
Avatar

Hi Anders,

I am using Mag+ to develop a demo magazine with 2 indesign documents.

In the first document, I have placed the HTML object which will link to a index.php. This index.php shows 1 hotspot which will open the product popup. In that popup I have ADD TO CART button. Clicking on that button, the top right item count will be increased. I have stored this value in session.

 

In the second document also, I have placed the HTML object which links to index2.php. This will also show 1 hotspot which will open a product window. Now at the top right item count should be retained from page1.

 

How can I get this item count from the first page. I tested using session. But since the page is not being refreshed when I come to page 2, I am unable to get the updated session value. 

Please suggest whether I can use any script in Mag+ to get this value.

Regards,

Maheswari

Maheswari 0 votes
0
Avatar

Hi Maheswari,

HTML views are preloaded and onload events are triggered when they are loaded, so you have to listen for changes. We plan to implement an event for when the HTML is view to use.

I used localStorage to save a timestamp of the latest change and a local timestamp, if the values != then I ran an update function.

Here is a simple example:

var localTime = 0;

var checkChange = function(){

    var time = localStorage.time;

    if(time !== localTime){

        localTime = time;

        updateCart();

    }

    setTimeout(checkChange, 1000);

};

checkChange();

Best regards

Patrik

Patrik Spathon 0 votes