| 148 |
lars |
1 |
\$config\_overwrite {#variable.config.overwrite}
|
|
|
2 |
===================
|
|
|
3 |
|
|
|
4 |
If set to TRUE, the default then variables read in from [config
|
|
|
5 |
files](#config.files) will overwrite each other. Otherwise, the
|
|
|
6 |
variables will be pushed onto an array. This is helpful if you want to
|
|
|
7 |
store arrays of data in config files, just list each element multiple
|
|
|
8 |
times.
|
|
|
9 |
|
|
|
10 |
This examples uses [`{cycle}`](#language.function.cycle) to output a
|
|
|
11 |
table with alternating red/green/blue row colors with
|
|
|
12 |
`$config_overwrite` = FALSE.
|
|
|
13 |
|
|
|
14 |
The config file.
|
|
|
15 |
|
|
|
16 |
|
|
|
17 |
# row colors
|
|
|
18 |
rowColors = #FF0000
|
|
|
19 |
rowColors = #00FF00
|
|
|
20 |
rowColors = #0000FF
|
|
|
21 |
|
|
|
22 |
|
|
|
23 |
|
|
|
24 |
The template with a [`{section}`](#language.function.section) loop.
|
|
|
25 |
|
|
|
26 |
|
|
|
27 |
<table>
|
|
|
28 |
{section name=r loop=$rows}
|
|
|
29 |
<tr bgcolor="{cycle values=#rowColors#}">
|
|
|
30 |
<td> ....etc.... </td>
|
|
|
31 |
</tr>
|
|
|
32 |
{/section}
|
|
|
33 |
</table>
|
|
|
34 |
|
|
|
35 |
|
|
|
36 |
|
|
|
37 |
See also [`{config_load}`](#language.function.config.load),
|
|
|
38 |
[`getConfigVars()`](#api.get.config.vars),
|
|
|
39 |
[`clearConfig()`](#api.clear.config), [`configLoad()`](#api.config.load)
|
|
|
40 |
and the [config files section](#config.files).
|