Customize splash screen per site
I'm looking to customize the splash screen on a per site basis. I have a disclaimer that needs to come up for one of my sites for a client but this does not apply to any of my other sites.
Any one else able to do this?
0
-
We haven't customized individual splash screens yet, but we did inplement our own disclaimer on a site by site basis. It is a custom js module that we add to our desktop.json.js file as necessary. The custom module code sits under the viewer config's resources folder.
Peter.0 -
Go into the wwwroot folder of the site you are trying to update --> Resources --> Images and update splash-logo.png with a new .png. Don't change the name of that .png so that you won't need to update any reference to it.
Jessey0 -
If you change the image in wwwroot, it will change it for all sites, not on a per site basis.
One way to handle site specific splash screens would be to use a bit of javascript in your index.html that splits apart the viewerConfig.viewerConfigUri string to build a URL that points to the image directory of the site being loaded.
Peter.0 -
The messier way to deal with it would be to use a different index.html for each site and change the image name in the <div class="shell-splash-content"> tag for each site. 0 -
Hi Peter, I have different splash screens for each of my viewers but I wonder if that's because of the method I've used to set up my viewers. In the wwwroot folder, I have separate folders for each of my html5 viewers with their own resources --> images folders, and thus separate splash-logo.png files for each viewer. My apologies, Stephanie, if this is not the same set up as for your viewer folders. 0 -
With the next versions of the Html5 Viewer (2.6) and Essentials (4.5) you will be able to configure the splash image in Manager on a per-site basis.
This does not however include a disclaimer.
--Ryan0 -
That's very good to know! Thank you. 0 -
Ryan, Do you know where in Manager we can change the splash logo for our sites? I changed the logo in my wwwroot/Images folder but when my viewer loads it just shows the three loading bars and no image.... 0 -
Hi Lisa,
In Essentials Manager, navigate to the 'Site Info' page. Once there, you should see an entry called 'Splash Screen Image URL', with a text box and a button labeled 'Browse' beside it. Click 'Browse', and select the image you wish to use as a splash screen image.
Best,
Seth Greylyn0 -
Hi Seth! Thank you for the info. Unfortunately, I've uploaded an image into the 'Splash Screen Image URL' but I still jsut get the three small loading bars? I orginially had the image in the C:\inetpub\wwwroot\Html5Viewer\Resources\Images folder and it worked before the upgrade to 4.5 and 2.6....Any ideas why it's still not displaying? 0 -
Hi Lisa,
Before you upgraded, is it possible that your viewer's Index.html page was configured with short URLs in the 'viewerConfig' variable? If so, and if you carried those forward configurations, then your viewer could be attempting to load sites using entries from that dictionary instead of the new short launch link infrastructure developed for GVH 2.6 (when coupled with GE 4.5).
An experiment to try is to change the short URL to a viewer from the Essentials Management Pack. In Manager, ensure you have a valid URL in the 'Splash Screen Image URL' box in the 'Site Info' page (remembering to save the site if you need to put one in it). Then navigate to the 'Viewers' page to see a list of viewers you've set up for the site. Select an instance of GVH 2.6 and edit it by clicking on the 'Edit the item' button.
The next page should have a field that says 'Global Unique ID', which is probably empty unless it's been previously set. Give your viewer a unique name by putting a single word in this field, then click 'Apply Changes' and then 'Save Site'. Once the site's been saved, click the 'Launch in Browser' link. You should see GVH launch with the new ID you've given it in the 'Global Unique ID' field, and that should display your custom splash screen after the image is retrieved from Essentials.
Let us know if you have any further questions!
Best,
Seth0
Please sign in to leave a comment.
Comments
11 comments