Creating HTML Assets: A Step-by-Step Guide

Learn how to create custom HTML assets for your sessions with this step-by-step guide! We'll cover everything from adding files to assets folders to creating digital asset types.

Creating HTML Assets: A Step-by-Step Guide

Creating HTML assets can be a daunting task, especially if you're new to HTML. Fortunately, there are tools and techniques that can help you create HTML resources with minimal effort. This article will provide a step-by-step guide on how to create HTML assets, what they contain, and how they can be added to a session. To start, you'll need to add at least one file to the assets folder, a thumbnail image as described in the PageLink section.

This file should have a .txt extension and can be created and edited with any text editor. Both MS Notepad supplied with Windows and TextEdit supplied with macOS will be suitable. Alternatively, free text editors such as Notepad++ (Windows only) and Atom (macOS and Windows) can provide you with some additional time-saving and precision tools, such as autocomplete and spell checker. HTML (Hyper Text Markup Language) is the language that creates web pages.

If you're unfamiliar with HTML, there will be a learning curve. However, it's possible to start from a very basic level and progress as you learn. HTML editors allow you to create HTML files with minimal effort. Most provide tools that can automate much of the repetitive typing work and many provide some error checking functions. Audio files can also be added to HTML assets to play sounds when the HTML page is displayed on the screen.

Examples would include driver's whistles and all calls on board, etc. The sound is stored as a separate file in the HTML resource. Creating your own HTML resources allows you to add session information and instructions that are perfectly tailored to each session. This requires creative effort and time, will need more testing, and is likely to create a lot of frustration. But the end result may be worth it. All files (HTML, graphics, audio and configuration, txt) are saved in the resource folder as shown in the following example.

This example includes a .html that refers to all .jpg and .tga graphic files. You can add as many HTML files as you need; however, the minimum number of files required in an HTML resource is two: the configuration .txt file and a thumbnail image (a .jpg file).You can include some simple HTML codes in the text message. If the string table token and message shown below are included in the configuration .txt file, an HTML resource contains HTML code. The code can be a full HTML page or only partial HTML. When creating an HTML resource in the editor or uploading a file with a .html extension, a digital asset type defines the types of archival media that a digital asset can store and the structure of attributes (metadata) to describe the asset.

You must be a content manager to create digital asset types and share them with others. Once you have selected an HTML-based template in the template editor, access the Assets group in the Edit template panel to manage the assets included in the currently selected template. The built-in pop-up message rule is used to create the message windows that appear on the screen during the execution of a session. You must associate the digital asset type with at least one repository and grant users at least the role of a collaborator in the repository so that the digital asset type can be used to create digital assets. If you decide you'll need to create an HTML resource for your session or sessions, here are the basic steps you'll need to take:

  • If the HTML Frame Asset container is set to Free, ensure that the SVG has been made scalable to avoid unexpected behavior.
  • If you have web content, such as a paragraph or a single image, that you would like to insert on multiple pages, consider creating a web content resource.
  • In Composer, inside the HTML Frame Asset properties panel, paste (ctrl +V) the code into the HTML property.
  • There are a wide variety of graphic software applications available that would be suitable for creating Trainz-ready images, both commercial and free.
  • To use a string table for the message text, use the A predefined string table entry option of an HTML resource.
  • The following example illustrates some formatted content that could come from a content management system through a REST web service interface asset created with API Explorer.
  • When you do this, you may need to clear the default CSS property of the HTML Frame Asset to ensure that the component renders as expected.
  • The HTML framework resource allows you to display HTML content in an Intuiface experience as a lighter alternative to using the web browser feature.
Creating an HTML asset may seem like an intimidating task at first but with some practice it can become second nature. With this guide in hand, you should now have all of the information necessary for creating your own custom HTML resources for your sessions.

Faith Fanner
Faith Fanner

Avid travel fanatic. Avid tv aficionado. Certified tv maven. Lifelong coffee maven. Infuriatingly humble music advocate. Incurable tv maven.