Skip to content

Commit f6366f2

Browse files
committed
Fix the version dropdown - define the allowlist and add docs
1 parent f24e279 commit f6366f2

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

config/statamic/system.php

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -247,4 +247,17 @@
247247

248248
'layout' => env('STATAMIC_LAYOUT', 'layout'),
249249

250+
/*
251+
|--------------------------------------------------------------------------
252+
| View Config Allowlist
253+
|--------------------------------------------------------------------------
254+
|
255+
| Config keys that are allowed to be accessed in Antlers templates. Use
256+
| '@default' to include Statamic's default list. Add 'docs' so the docs
257+
| version switcher can access config.docs.version and config.docs.versions.
258+
|
259+
*/
260+
261+
'view_config_allowlist' => ['@default', 'docs'],
262+
250263
];

0 commit comments

Comments
 (0)