Page 1 of 1
Toasts in Master Frame
Posted: Thu Jun 04, 2020 4:39 pm
by mfirlotte
My site is built using a Master Frame and I want a toast to appear on my index page only but when I put the toast there, in index.html, it does not display. However, if I put the toast into the Master Frame it does. I do not want it to appear on every site page, just the index page (or other selected pages depending on the toast message).
Is there a way to make the toast work in a Master Frame environment...and just for the page or pages I want it on?
Thanks...
Re: Toasts in Master Frame
Posted: Thu Jun 04, 2020 5:05 pm
by Bluesman
Hi... I have the "toast" on separate page on site that uses Master Frame. Works fine...
Re: Toasts in Master Frame
Posted: Thu Jun 04, 2020 5:06 pm
by Pablo
It should also work without a master frame.
Maybe there is conflict with another script on the page?
Re: Toasts in Master Frame
Posted: Thu Jun 04, 2020 5:44 pm
by mfirlotte
Works fine without a master frame on any test page I want.
But within my ecommerce WYSIWYG project, when I put the toast within any page, it will not display. If I move it to the Master Frame as a test and republish, it works. Just that it now displays on all pages and I only want it on specific pages...like for a Sale Announcement of a specific product.
For now I had to revert to Timers and hidden Shapes but I'd really like to use Toasts. Much easier to manage.
Re: Toasts in Master Frame
Posted: Thu Jun 04, 2020 6:10 pm
by Pablo
In that case, I think there is conflict with another script on the page.
Re: Toasts in Master Frame
Posted: Thu Jun 04, 2020 6:16 pm
by bkjohns
Make a second master page with the toast and use it for the selected pages you want the toast on.
Re: Toasts in Master Frame
Posted: Thu Jun 04, 2020 7:02 pm
by mfirlotte
Good idea. I will try that this evening on a test master frame and test pages. If it works, then is likely a script conflict like noted.
Thanks...
Re: Toasts in Master Frame
Posted: Thu Jun 04, 2020 7:54 pm
by mfirlotte
Pablo...please have a look at this test page1 and page 2.
https://www.firlottecreations.com/MF/test1.html
Is the simplest master frame layout possible with no scripts or fancy footwork. The project file only has the master from and 2 test pages.
All is on the server and I checked to make sure the JS files needed were there as noted when I did page view source.
jquery-1.12.4.min.js
util.min.js"
toast.min.js
But same place I was at...will not work on a page other than the Master Frame page???
Re: Toasts in Master Frame
Posted: Thu Jun 04, 2020 8:18 pm
by Pablo
Sorry, but I cannot see what you have done based on the published page.
To be able to help you, I need the project file.
Re: Toasts in Master Frame
Posted: Thu Jun 04, 2020 8:28 pm
by mfirlotte
Thanks Pablo...but I do not seem to have permissions to upload or attach. How can I get his file to you. It's small...only 47Kb.
Re: Toasts in Master Frame
Posted: Thu Jun 04, 2020 9:12 pm
by mfirlotte
I think I got it...here is the URL to my WBS project file on my hosting service...
Hope it works.
WYSIWYG project file...
https://www.firlottecreations.com/MF/Untitled5.wbs
or as a ZIP file...
https://www.firlottecreations.com/MF/Untitled5.zip
Thanks...
Re: Toasts in Master Frame
Posted: Thu Jun 04, 2020 11:27 pm
by bkjohns
I get the same result using a master frame/content holder, but if I switch to a master page it seems to work.
Re: Toasts in Master Frame
Posted: Fri Jun 05, 2020 7:24 am
by Pablo
Thanks for the project!
In the current version this combination is not supported.
I will investigate if this can be added to a future update.
Re: Toasts in Master Frame
Posted: Fri Jun 05, 2020 10:34 am
by mfirlotte
Thanks for checking it out Pablo.
As a work-around, I used bkjohns concept for my index page...a 2nd master frame.
Thanks All!!!
EDIT: And also as bkjohns says...it does work with Master Page, but not Master Frames. However, master pages are not as versatile as master frames. If different pages have more or less content, then the master page footer does not move with it whereas with master frames I can have short or long pages it seems.
Re: Toasts in Master Frame
Posted: Fri Jun 05, 2020 5:00 pm
by bkjohns
I agree master pages are a different duck regarding footers. I use an extension to keep the footer at the bottom of the page when using a master page. And the last update (today) fixed the issue with master frames so now all is good either way. Thanks, Pablo.
Re: Toasts in Master Frame
Posted: Sat Jun 06, 2020 1:14 pm
by mfirlotte
Now I'm all GIDDY
That's simply amazing. THANKS PABLO!!!!!!!!!!
And thank you too bkjohns for your temporary solutions you offered. They worked too.