How To: Change the Loading Gif in DriveWorks Live
DriveWorks Live displays a loading Gif overlay when tasks are being performed on the DriveWorks Live server. This could be anything from loading the DriveWorks Specification, running Specification Macros or Transitioning the Specification.
By default DriveWorks Live shows the loading Gif above in the Web Theme for each Skin.
To add your own custom loading Gif to the DriveWorks Live Web Theme follow the steps below.
Adding a Loading Gif to DriveWorks Live
Adding a loading Gif to DriveWorks Live requires a custom Skin. Make sure you copy a Skin from the system folder and paste it into the custom folder and rename it, before making these changes.
- On the DriveWorks Live machine, navigate to C:\ProgramData\DriveWorks\<DriveWorksVersion>\Live\Themes\Web\content\custom
- Create a new folder in this location called "images".
- Copy your loading Gif file to this new folder.
- Next, navigate to C:\ProgramData\DriveWorks\<DriveWorksVersion>\Live\Themes\Web\system\css
- Open the file called core.css.
- Find the class called ".loadingOverlayProgress".
- Copy the CSS class to your clipboard. The data looks like the following:
background-position: center top;
Make sure you include the curly brackets and the full stop at the start of the class.
- Next, go to your Custom Skin folder. This can be found here: C:\ProgramData\DriveWorks\<DriveWorksVersion>\Live\Themes\Web\content\custom\skins
- In your skin, you will have a file called skin.css. Edit this file.
- Find a gap between two CSS classes and paste in your copied CSS.
- Next, change the background image URL to be '../../images/GifName.gif'.
This path is relative to the CSS file. The ../ indicates that the file location is up a folder. This is done twice because the loading gif is located 2 folders above.
- Change the GifName to be the name of your actual loading Gif file.
- Save the skin.css file.
- Restart DriveWorks Live or your IIS site.
- If you are using IIS, you may need to recycle your Application Pool.
- You may also need to clear your browser cache to see the change. Ctrl + F5 will force the browser to refresh and clear it's cache.
- Once modified, you may to change the height property to allow your new Gif to fit inside the HTML element.
After this change, you should see your new loading Gif appear in your browser tab when visiting your DriveWorks Live site.
Loading Gif's can be downloaded from websites or created using applications such as Photoshop.
You can download loading Gifs from Loading.io.
|Knowledge Base Article Ref:||KB18081402|