Is it possible to use Custom Variables in a layout file? I can use them in a template file like this:
Mage::getModel('core/variable')->loadByCode('variableCode')->getData('store_plain_value')
But not sure with the xml file.
I know I could use the above instead, but this would be useful to know anyway for future uses too.
UPDATE: Have been most unclear I’m afraid. I am specifically looking to access the admin panel “Custom Variables” section, not just pass my own variables to a block. I do apologise for the lack of clarity.
Based on the updated question:
Create a helper class which wraps the
core/variablefunctionality, e.g:Then, in layout XML for your block you can do this (I believe):