From e489d4c844a2ec1a2d5c0fdd50dd4e9cc50ffa02 Mon Sep 17 00:00:00 2001 From: MikaelNordberg Date: Wed, 4 Feb 2026 11:17:36 +0100 Subject: [PATCH 1/3] Add useDynamicContentInTitle setting to configuration examples --- docs/PxWeb2/documentation/customization.md | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/docs/PxWeb2/documentation/customization.md b/docs/PxWeb2/documentation/customization.md index 8414404..c393e9a 100644 --- a/docs/PxWeb2/documentation/customization.md +++ b/docs/PxWeb2/documentation/customization.md @@ -97,7 +97,7 @@ PxWeb retrieves table metadata and data from a PxWeb API 2.0 instance. Open `config/config.js` and set `apiUrl`: ```js hl_lines="11" - window.PxWeb2Config = { + globalThis.PxWeb2Config = { language: { supportedLanguages: [ { shorthand: 'en', languageName: 'English' } @@ -109,6 +109,7 @@ Open `config/config.js` and set `apiUrl`: baseApplicationPath: '/', apiUrl: "https://your.api.server/PxWeb/api/v2", maxDataCells: 100000, + useDynamicContentInTitle: false, showBreadCrumbOnStartPage: false, specialCharacters: ['.', '..', ':', '-', '...', '*'], variableFilterExclusionList: { @@ -190,7 +191,7 @@ Repeat for every supported language. In `config/config.js`: ```js hl_lines="2 3 4 5 6 7 8 9 10" - window.PxWeb2Config = { + globalThis.PxWeb2Config = { language: { supportedLanguages: [ { shorthand: 'en', languageName: 'English' }, @@ -203,6 +204,7 @@ In `config/config.js`: baseApplicationPath: '/', apiUrl: "https://your.api.server/PxWeb/api/v2", maxDataCells: 100000, + useDynamicContentInTitle: false, showBreadCrumbOnStartPage: false, specialCharacters: ['.', '..', ':', '-', '...', '*'], variableFilterExclusionList: { @@ -353,7 +355,7 @@ Here is an example of how to override both decimal and group separators for simp Toggle: ```js hl_lines="8" - window.PxWeb2Config = { + globalThis.PxWeb2Config = { language: { supportedLanguages: [ { shorthand: 'en', languageName: 'English' } @@ -365,6 +367,7 @@ Toggle: baseApplicationPath: '/', apiUrl: "https://your.api.server/PxWeb/api/v2", maxDataCells: 100000, + useDynamicContentInTitle: false, showBreadCrumbOnStartPage: false, specialCharacters: ['.', '..', ':', '-', '...', '*'], variableFilterExclusionList: { @@ -388,7 +391,7 @@ in the `language` section of `config/config.js`. ### Change the position of the language code in the URL ```js hl_lines="9" - window.PxWeb2Config = { + globalThis.PxWeb2Config = { language: { supportedLanguages: [ { shorthand: 'en', languageName: 'English' } @@ -401,6 +404,7 @@ in the `language` section of `config/config.js`. baseApplicationPath: '/pxweb/', apiUrl: "https://your.api.server/PxWeb/api/v2", maxDataCells: 100000, + useDynamicContentInTitle: false, showBreadCrumbOnStartPage: false, specialCharacters: ['.', '..', ':', '-', '...', '*'], variableFilterExclusionList: { From 1af8ad7ce045172b52cbb0f158f3b0b80159a991 Mon Sep 17 00:00:00 2001 From: MikaelNordberg Date: Thu, 12 Feb 2026 16:04:53 +0100 Subject: [PATCH 2/3] Add documentation for useDynamicContentInTitle setting in table titles --- docs/PxWeb2/documentation/customization.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/docs/PxWeb2/documentation/customization.md b/docs/PxWeb2/documentation/customization.md index c393e9a..41ad66e 100644 --- a/docs/PxWeb2/documentation/customization.md +++ b/docs/PxWeb2/documentation/customization.md @@ -162,6 +162,26 @@ maxDataCells: 500000 The API has its own limit. Do not set the UI limit higher than the API’s backend limit to avoid inconsistent behavior. Usually they should match. +### Use of dynamic content texts in table title + +The default behaviour when creating the table title is to use content text at table level. + +The `useDynamicContentInTitle` setting makes it possible to get the following behaviour for the table title: + +- One content value selected: Content text used in table title +- More than one content value selected: Content text from table level used in table title + +The default value for this setting is `false`. + +If you want to use dynamic content texts in the table title, set `useDynamicContentInTitle` in `config/config.js` to `true`: + +```js +useDynamicContentInTitle: true +``` + +!!! note "Only for CNMM databases" + This setting can only be used for CNMM databases. If your database is a PX-file database, this setting should be set to `false`. + ### Change the default characters for missing values Edit the `specialCharacters` array in `config/config.js`: From 84079f1872487adc9094c19bdca3f9fa9c4f0fd6 Mon Sep 17 00:00:00 2001 From: MikaelNordberg Date: Fri, 13 Feb 2026 10:16:00 +0100 Subject: [PATCH 3/3] Update table title configuration documentation to include dynamic content usage --- docs/PxWeb2/documentation/customization.md | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/docs/PxWeb2/documentation/customization.md b/docs/PxWeb2/documentation/customization.md index 41ad66e..4b6981c 100644 --- a/docs/PxWeb2/documentation/customization.md +++ b/docs/PxWeb2/documentation/customization.md @@ -162,16 +162,24 @@ maxDataCells: 500000 The API has its own limit. Do not set the UI limit higher than the API’s backend limit to avoid inconsistent behavior. Usually they should match. -### Use of dynamic content texts in table title +### Table title configuration -The default behaviour when creating the table title is to use content text at table level. +The default behaviour when creating the table title is to use content text at table level followed by an enumeration of selected variable names. Example: -The `useDynamicContentInTitle` setting makes it possible to get the following behaviour for the table title: +``` +Content at table level by variable1, variable2 and variable3 +``` -- One content value selected: Content text used in table title -- More than one content value selected: Content text from table level used in table title +For CNMM databases it is possible to configure an alternative way of creating the table title with the following behaviour: -The default value for this setting is `false`. +#### One content value selected: +``` +Alternative text for selected content by variable1, variable2 and variable3 +``` +#### Two or more content values selected: +``` +Content at table level by variable1, variable2 and variable3 +``` If you want to use dynamic content texts in the table title, set `useDynamicContentInTitle` in `config/config.js` to `true`: