Should use <% with %> rather than <% loop %>

This commit is contained in:
muskie9 2014-11-11 08:44:37 -06:00
parent fb14d95eb1
commit a526c45d64

View File

@ -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]`