I have a few custom modules (content sliders etc) that have their own config sections in System->Configuration. I'd like to be able to add custom layout updates that would apply to the pages these sliders are added to via the admin, instead of a local.xml file (or module xml) - the same way you can for cms pages and categories etc:
I see that the cms pages use the following (in app/code/core/Mage/Cms/Helper/Page.php):
$action->loadLayoutUpdates(); $layoutUpdate = ($page->getCustomLayoutUpdateXml() && $inRange) ? $page->getCustomLayoutUpdateXml() : $page->getLayoutUpdateXml(); $action->getLayout()->getUpdate()->addUpdate($layoutUpdate); $action->generateLayoutXml()->generateLayoutBlocks();
...so I guess it would be something similar to that. Is it possible to do this for a custom module? And if so, any general pointers on how to accomplish it?