0
I have a module that I am doing and I have a doubt, follows:
My custom_module.xml is like that:
<layout version="0.1.0">
<default>
<reference name="root">
<block type="page/html_footer" name="footer" as="footer" template="page/html/footer.phtml">
<action method="setTemplate">
<template>customizefooter/footer.phtml</template>
</action>
</block>
</reference>
</default>
</layout>
When the option is enabled Yes or In the within the configuration ADMIN
of my module, it enables:
<?php if(Mage::getStoreConfig('my_module/options/enable_custom_paradox_html')): ?>
<?php echo Mage::getStoreConfig('my_module/options/Html_double_paradox'); ?>
<?php endif; ?>`
Beauty, with the Yes enabled it loads my new option along with the file set in setTemplate
and the options defined therein.
But when I select the option NAY, it does not return to the original . phtml file, continues in mine and with the unchecked option. I need that when selected the option NAY it changes the . phtml to the custom standard and only when the option YES is enabled load my . phtml.
How do I proceed? Thank you