Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
site_settings-3176342
Manage
Activity
Members
Labels
Plan
Custom issue tracker
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Issue forks
site_settings-3176342
Commits
0777cbf5
Commit
0777cbf5
authored
8 years ago
by
Scott Euser
Browse files
Options
Downloads
Patches
Plain Diff
Update readme for release
parent
031b0566
No related branches found
Branches containing commit
Tags
8.x-1.3
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
README.txt
+8
-8
8 additions, 8 deletions
README.txt
with
8 additions
and
8 deletions
README.txt
+
8
−
8
View file @
0777cbf5
...
...
@@ -61,22 +61,22 @@ How to access the settings in twig templates
--------------------------------------------
Debug your settings when debug is enabled (https://www.drupal.org/docs/8/theming/twig/debugging-twig-templates)
via `{{ dump(settings) }}` or `{{ dump(settings.your_settings_group.your_setting_name) }}` for instance.
via `{{ dump(
site_
settings) }}` or `{{ dump(
site_
settings.your_settings_group.your_setting_name) }}` for instance.
Access a non-repeating variable with one field like so:
`{{ settings.your_settings_group.your_setting_name }}`
`{{
site_
settings.your_settings_group.your_setting_name }}`
Access a non-repeating variable with multiple fields like so:
`{{ settings.your_settings_group.your_setting_name.field_title }}` and
`{{ settings.your_settings_group.your_setting_name.field_subtitle }}`
`{{
site_
settings.your_settings_group.your_setting_name.field_title }}` and
`{{
site_
settings.your_settings_group.your_setting_name.field_subtitle }}`
Access a non-repeating variable with multiple fields and complex field settings:
`{{ settings.your_settings_group.your_setting_name.field_date.value }}`
`{{ settings.your_settings_group.your_setting_name.field_date.options }}` etc
`{{
site_
settings.your_settings_group.your_setting_name.field_date.value }}`
`{{
site_
settings.your_settings_group.your_setting_name.field_date.options }}` etc
Access a repeating variable with one field like so:
`{% for setting in settings.your_settings_group.your_setting_name %}
{{ setting }}
`{% for
site_
setting in
site_
settings.your_settings_group.your_setting_name %}
{{
site_
setting }}
{% endfor %}`
How to access the settings in php files
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment