I'm calling in a layout update from a module, from the module's config.xml
file:
<?xml version="1.0" encoding="UTF-8"?>
<config>
...
<frontend>
<layout>
<updates>
<cmsogdata>
<file>cjw/cmsogdata.xml</file>
</cmsogdata>
</updates>
</layout>
</frontend>
...
</config>
It pulls the file in fine - if I put a deliberate syntax error in cmsogdata.xml
, everything breaks as you'd expect.
What I'm trying to do is add a custom block into the HTML <head>
on every page via <default>
and it's not working.
<?xml version="1.0" encoding="UTF-8"?>
<layout version="0.1.0">
<default>
<reference name="head">
<block type="core/template" name="og.general" template="page/html/og-general.phtml" />
</reference>
</default>
</layout>
However if I target a specific page, such as the homepage it does work, e.g.:
<?xml version="1.0" encoding="UTF-8"?>
<layout version="0.1.0">
<cms_index_index>
<reference name="head">
<block type="core/template" name="og.general" template="page/html/og-general.phtml" />
</reference>
</cms_index_index>
</layout>
What am I missing?