mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Merge pull request #3627 from nhorstmeier/patch-1
Should use <% with %> rather than <% loop %>
This commit is contained in:
commit
421152f722
@ -15,9 +15,9 @@ You can access `[api:SiteConfig]` options from any SS template by using the func
|
||||
|
||||
// or
|
||||
|
||||
<% loop $SiteConfig %>
|
||||
<% with $SiteConfig %>
|
||||
$Title $AnotherField
|
||||
<% end_loop %>
|
||||
<% end_with %>
|
||||
|
||||
|
||||
Or if you want to access variables in the PHP you can do
|
||||
@ -48,7 +48,7 @@ Create a mysite/code/CustomSiteConfig.php file.
|
||||
}
|
||||
|
||||
|
||||
Then activate your extension in your `[config.yml](/topics/configuration)` file.
|
||||
Then activate your extension in your [config.yml](/topics/configuration) file.
|
||||
|
||||
:::yml
|
||||
SiteConfig:
|
||||
@ -65,4 +65,4 @@ You can define as many extensions for `[api:SiteConfig]` as you need. For exampl
|
||||
your own global settings for the dashboard.
|
||||
|
||||
## API Documentation
|
||||
`[api:SiteConfig]`
|
||||
`[api:SiteConfig]`
|
||||
|
Loading…
Reference in New Issue
Block a user