Portal configurations

Introduction to portal configurations in ConSol CM

Portal configurations are used to configure the user interface of CM/Track. You can create several portal configurations for different CM/Track instances.

Concepts, terms and definitions

Concept

Other terms

Definition

CM/Track

 

ConSol CM add-on, portal which allows customers to create and view their cases

JSON

JavaScript Object Notation

Format of files holding portal configurations

activity form

ACF, Activity Control Form

Form which is displayed when the user executes an activity. The required fields of the form need to be filled out before proceeding.

default values script

prefill script

Script used to prefill fields with certain values for case creation

Purpose and usage

The portal configuration allows to define the following aspects for CM/Track:

A portal configuration consists of several JSON and CSS files where the settings are made. In addition, some images are saved in the ConSol CM database, and the authentication settings are saved in system properties. The portal configuration is based on a template with the default configuration.

Portal configuration are managed in three tabs:

The settings made on the Portal configurations page apply to one or several specific instances of CM/Track. In addition to this configuration, some global settings, which apply to all CM/Track instances, are required. They are done on the Global portal settings page.

Files for portal configurations

The portal configuration for CM/Track includes the following files:

Settings for portal configurations

The portal configuration has the following attributes:

Visual appearance

CM/Track comes with a light and a dark mode. You can choose your own images and colors for each mode. The following colors can be defined:

The settings are saved to the theme.css file and the images which you upload are saved to the database.

Case fields

Configure the layout of cases for the two modes:

View: The customer displays an existing case. The layout is saved to the editLayout and editLayoutOptions attributes of config.json file.

Create: The customer creates a new case. The layout is saved to the createLayout and viewLayoutOptions attributes of config.json file.

The following settings are available for each mode:

Activity forms

Configure the layout of the activity forms which are used in activities which are available for customers. This is only required if you want to override the layout defined on the Activity forms page.

Select the activity form which you want to layout. You can choose the number of columns and position the fields as desired. Fields can span several columns, which is useful for large tables.

Fields which are not configured explicitly are displayed below the configured fields, i.e. you cannot remove a form field by removing it from the layout. Instead, you need to make the field unavailable via REST.

Empty positions can only be added at the end of a row. They are removed automatically when saving the configuration of they are placed at the beginning or in the middle.

General settings

The following settings are available. They are saved in the config.json and public.json files:

Rich text editor

Rich text editors are used in the comment field and in rich text fields. They have one common setting:

The following settings can be configured independently for each editor. First, you select the scope of the configuration: Comment or Rich text field. For rich text fields, you can define the behavior for all fields, or select a specific field to define editor properties for this field only.

The settings are saved to the config.json file.

In the localization.json files you can modify the text which is shown for rich text fields which are configured for link view with the Rich text display in view mode setting:

Case creation tiles

The welcome page includes tiles which serve as a quick access to case creation. By default, all queues to which the user has access are displayed on the welcome page with their default settings, i.e. with the queue name, description and icon from the Queues page.

Alternatively, you can define the tiles individually. The settings are saved in the welcome.json file. If the user has access to a queue for which there is no tile, this queue is shown in the More button.

You can freely combine tabs and lists to group your tiles and create a hierarchical structure. There are several configuration possibilities:

The following settings apply to the structure:

Adding tiles

To add a tile, click the plus icon in the main panel. The following settings can be made for each tile:

Using lists

To add the first list item, click the New list item button. Subsequent list items can be added by clicking the plus icon below the first list item. The following settings can be made for each list item:

Using tabs

To add the first tab, click the New tab button. Subsequent tabs can be added by clicking the plus icon next to the first tab. The following settings can be made for each tab:

Widgets on the welcome page

Three types of widgets can be shown on the welcome page of CM/Track:

By default, there is a case list widget only. You can add additional widgets by clicking the Add widget button. You need to enter an internal name and select the widget type. The available settings depend on the widget type. Afterwards you can drag the widget to the desired place on the grid and modify its size by using the arrow icons.

Case list

No additional settings

Generic

You need to select a widget visualization script (see Scripts of the type Widget visualization) in the the Script (type ‘Widget visualization’) field. The script needs to return the content of the widget.

News

You need to provide the following settings:

Authentication

The Authentication tab contains the settings which are needed to configure user authentication via OIDC.

The following settings are available:

Basic tasks

Working with portal configurations

You can perform the following actions on client configurations:

Advanced tasks

Editing GUI texts

The GUI texts can be changed in the components_localization.json, localization.json and public.json files:

  1. Go to the Files tab.

    If you have unsaved changes in the Basic configuration tab, you need to save these changes first.

  2. Click the button of the desired file to scroll the page to the beginning of the file.

    • components_localization.json: Contains the texts from components visible to users after logging in to CM/Track.

    • localization.json: Contains the texts visible to users after logging in to CM/Track.

    • public.json: Contains the texts on the login page of CM/Track.

  3. Edit the texts in quotes after the colon.

  4. Save your changes by clicking the Save changes button below the file or the global Save all files button.

Changing number and date formats

The localization.json file contains attributes which allow to change number and date formats:

Adding headlines to the case or activity form layout

You can use headlines to structure the fields of cases or activity forms:

  1. Create a field and assign the setting Text display with the value Title on the Case fields page.

  2. Add the field to the layout:

    • Case fields: Click the Add field layout button for the respective field group, select the field and position it as desired.

    • Activity form: Add the field to the activity form on the Activity forms page and position it as desired.

Make sure that the group which the field belongs to includes at least one field which has a value. Otherwise, the whole group is omitted when viewing the case.

Using a portal configuration for several URLs

The default OIDC configuration covers the situation that the default portal configuration called “trackV3” is used by one instance of CM/Track, which is accessible via one URL. If the portal configuration has another name, an OIDC configuration with this name is created automatically when providing the URL of the CM/Track instance.

Manual OIDC configurations are needed if several URLs are used, for example in the following situations:

For each URL used to access CM/Track, one OIDC configuration is needed. It must be created manually on the System properties page. The following changes are needed:

  1. Add all the URLs which should use the portal configuration as a comma-separated list to the system property cmas-restapi-core, domain.map.for.client.config.<portal_configuration>, e.g. domain.map.for.client.config.MYPORTAL=http://cm.consol.pl:8999/cm-track, http://cm.consol.pl/cm-track.

  2. Create an OIDC configuration for each URL. It needs to contain at least the following properties:

  3. Review the default OIDC configuration, see Authentication. If different values are needed, create configuration-specific properties to overwrite the defaults, e.g. oidc.track3.authority.MYTRACK1.