From 739a71f0702cc83e4c103b271ad38824b1f3aebc Mon Sep 17 00:00:00 2001 From: "Anderson, from Dropsolid" <116097999+andersonjeccel@users.noreply.github.com> Date: Wed, 28 Aug 2024 08:34:16 -0300 Subject: [PATCH] define the default value as a second parameter --- docs/design/retriving_system_information.rst | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docs/design/retriving_system_information.rst b/docs/design/retriving_system_information.rst index bed180b5..8535e644 100644 --- a/docs/design/retriving_system_information.rst +++ b/docs/design/retriving_system_information.rst @@ -32,6 +32,12 @@ To directly display a configuration value in your template, use the following sy {{ configGetParameter('parameter_name') }} +You can also define the default value as a second parameter: + +.. code-block:: twig + + {{ configGetParameter('parameter_name', 'default value') }} + For example, to display the API OAuth2 access token lifetime: .. code-block:: twig