Static content¶
Static content are resources, used by some segment types, such as Images, PDF Documents, Kpis. Some resources are included by default. Custom resources need to be included into the application first, before they can be used. This can be achieved in two ways:
By clicking the Manage CSV/Image/Audio/PDF Files button in the layout list. For more information see Working with the Layout List chapter.
When a segment uses resource, a Content Files Manager button is displayed in the corresponding field. A path to the desired file can also be typed directly into the text field.
Figure 1: Field with the Content Files Manager button
Clicking the button opens up the Content Files Manager dialog.
Figure 2: Content Files Manager
List of folders - List of folders within the Static Content folder. This section also contains a search bar for faster filtering in the list of folders.
List of files and folders - List of files and subfolders within the folder, selected in the section 1. Files and folders can also be filtered by using the search bar. Double-click on a file in this section automatically selects the file and closes the dialog. Double-click on a folder opens it in the list of folders.
Create Folder - A folder can be created by clicking this button.
Upload File - Clicking this button opens an upload dialog. The dialog allows the user to add files from his file system to the list. Added files won’t be uploaded until the button is clicked.
Figure 3: Upload dialog
Locate the desired files by clicking the button and decide how the static content should be uploaded. Available options are:
Upload And Replace If Exists - static content files are uploaded. In case a file with the same name already exists, it is replaced by the uploaded file.
Upload And Rename If Exists - static content files are uploaded. In case a file with the same name already exists, the uploaded file is renamed.
Upload If Not Exists - static content files are only uploaded if they do not already exist.
Download File - Each file can be downloaded by selecting it in the list of files and clicking this button.
Delete selected files/folders - Selected files or folders can be deleted by clicking this button.
File/Folder Naming Rules¶
When uploading files or creating folders, it is important to follow the naming rules to ensure compatibility and avoid issues. The following rules apply:
Allowed Characters: Only alphanumeric characters (A-Z, a-z, 0-9), hyphens (-), underscores (_), and periods (.) are allowed in names.
Illegal Characters: Characters like “ \ / : | < > * ? “ are not allowed in names.
Length Limit: Names must not exceed 100 characters.
Case Sensitivity: Names are case-preserving but case-insensitive. For example, “File.txt” and “file.txt” are considered the same.
Special Names: Names such as LPT1, COM1, PRN, and others like CLOCK$ are reserved and cannot be used.
For more information about the naming rules, see Microsoft documentation.