title: Magento - xml layouts, specify value for ifconfig?
body: <p>I'm sure I saw before somewhere, specifying a value for xml ifconfig statements (as default is just boolean). Anyways, disabling modules in the admin doesn't actually work (only disables module output). <em>But</em> you can add an ifconfig to your layout file, so for example, to set a template only if a module is <strong>disabled</strong> is the following:</p>
  
  <pre><code>&lt;action method="setTemplate" ifconfig="advanced/modules_disable_output/Myname_Mymodule"&gt;
      &lt;template&gt;mytemplate.phtml&lt;/template&gt;
  &lt;/action&gt;
  </code></pre>
  
  <p>So how could you invert this, so the template is set only if the module is <strong>enabled</strong>? Something like:</p>
  
  <pre><code>&lt;action method="setTemplate" ifconfig="advanced/modules_disable_output/Myname_Mymodule" value="0"&gt;
      &lt;template&gt;mytemplate.phtml&lt;/template&gt;
  &lt;/action&gt;
  </code></pre>