1
0
mirror of https://github.com/silverstripe/silverstripe-framework synced 2024-10-22 14:05:37 +02:00

Merge pull request from nhorstmeier/patch-1

Should use <% with %> rather than <% loop %>
This commit is contained in:
Sam Minnée 2014-11-12 13:38:10 +13:00
commit 421152f722

View File

@ -15,9 +15,9 @@ You can access `[api:SiteConfig]` options from any SS template by using the func
// or // or
<% loop $SiteConfig %> <% with $SiteConfig %>
$Title $AnotherField $Title $AnotherField
<% end_loop %> <% end_with %>
Or if you want to access variables in the PHP you can do 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 :::yml
SiteConfig: 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. your own global settings for the dashboard.
## API Documentation ## API Documentation
`[api:SiteConfig]` `[api:SiteConfig]`