Skip to content

Commit 8e9c03c

Browse files
committed
Fix headings
1 parent c13fd82 commit 8e9c03c

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

docs/design/retriving_system_information.rst

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
Retrieving Mautic settings in Twig
2-
=============================================
2+
##################################
33

44
Mautic allows you to access configuration settings directly in Twig templates using the ``configGetParameter`` function. This feature is particularly useful for creating display conditions or showing existing data in your templates.
55

66
Basic usage
7-
-----------
7+
***********
88

99
To retrieve a setting, use the ``configGetParameter`` function with the parameter name as its argument:
1010

@@ -13,7 +13,7 @@ To retrieve a setting, use the ``configGetParameter`` function with the paramete
1313
{{ configGetParameter('parameter_name') }}
1414
1515
Display conditions
16-
------------------
16+
==================
1717

1818
Use ``configGetParameter`` in conditional statements to control the display of content based on configuration settings:
1919

@@ -24,7 +24,7 @@ Use ``configGetParameter`` in conditional statements to control the display of c
2424
{% endif %}
2525
2626
Displaying configuration values
27-
-------------------------------
27+
===============================
2828

2929
To directly display a configuration value in your template, use the following syntax:
3030

@@ -45,12 +45,12 @@ For example, to display the API OAuth2 access token lifetime:
4545
API OAuth2 Access Token Lifetime: {{ configGetParameter('api_oauth2_access_token_lifetime') }}
4646
4747
Finding available parameters
48-
----------------------------
48+
============================
4949

5050
The ``/config/local.php`` file contains available configuration parameters, once you save the global configuration form for the first time. This file contains the complete list of settings that are accessible using ``configGetParameter``.
5151

5252
Identifying parameter names
53-
---------------------------
53+
===========================
5454

5555
To find the correct parameter name for a specific setting:
5656

@@ -67,7 +67,7 @@ For example, if you see:
6767
The corresponding parameter name would be ``api_oauth2_access_token_lifetime``.
6868

6969
Additional information
70-
----------------------
70+
**********************
7171

7272
- Be cautious when displaying sensitive configuration data in templates.
7373
- Always consider providing default values when using configuration parameters to handle cases where the setting aren't defined.

0 commit comments

Comments
 (0)