I’m doing a custom module in Magento and everything is going swimmingly… except I want to change the base layout template that all pages in the module use. I’ve done some googling with little success. Anyone have any answers? I want to do something along the lines of:
...
<optionbox>
<reference name="root">
<action method="setTemplate"><template>page/empty.phtml</template></action>
</reference>
</optionbox>
As you may guess, it’s a lightbox… I’m a glutton for punishment I guess 🙂
I notice that you’ve got the root of your layout update as
<optionbox>which in theory should cover all controllers and actions under that module. However, I’ve only ever seen this done with<optionbox_index>whereindexis fromIndexControllerin your module. So perhaps try this replaced with your controller name:Also, you should try Alan Storm’s LayoutViewer module, instructions on it’s use here. That might help you debug it.
Cheers,
JD