I have three fields in admin config section that have to be checked. If at least one of them is set to true
the files should load.
layout.xml
<reference name="head">
<action method="addItem">
<type>skin_js</type>
<name>path/to/file1.js</name>
</action>
<action method="addItem">
<type>skin_js</type>
<name>path/to/file2.js</name>
</action>
...
</reference>
Ideas:
- add a helper for each file
- add a new (hidden?) field to config and at sections
save_before
set value depending of the other fields - Extended ifconfig extension is already is installed, but no idea how to set up condtions
At the moment I prefer 2nd one ...
Any other ideas? Any suggestions?