From 1284cf4db72781c5f7a8ae570f005cbda1672238 Mon Sep 17 00:00:00 2001 From: Sjur Sutterud Sagen Date: Fri, 30 Jan 2026 13:08:01 +0100 Subject: [PATCH] Add WIP documentation, needs to be finished when API part is done --- docs/PxWeb2/documentation/customization.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/docs/PxWeb2/documentation/customization.md b/docs/PxWeb2/documentation/customization.md index 8414404..bb7b377 100644 --- a/docs/PxWeb2/documentation/customization.md +++ b/docs/PxWeb2/documentation/customization.md @@ -15,6 +15,7 @@ You can: - Limit table sizes. - Control how and where languages appear in URLs. - Hide variables from the variable filter. +- Customize Definitions panel content. WIP - Customize start page text and footer links (examples included below). - Define characters used for missing values. @@ -463,6 +464,15 @@ Edit these CSS variables in `theme/variables.css`: Do not alter `--px-border-radius-none` or `--px-border-radius-full` unless you know the side effects (they are used for logical extremes). +### Customize Definitions panel content WIP + +The Definitions panel in the right sidebar on the table page, can be +customized by changing translation strings in the "presentation_page.main_content.about_table.definitions" section of the relevant `locales//translation.json` file. + +If the strings inside the "about_statistics" and "metadata" sections are empty, the Definitions panel will only show the primary links from the API. The keys inside the "about_statistics" will add a header and text description to the primary links section. + +If the API also returns variable definitions, the keys inside the "metadata" section will add a header and text description to the variable definitions section. + ### Change the text and related links on the startpage, table page and in the footer The `content.json` file defines customizable text and links that appear in