I am trying to create a module for toggling visibility of a sort of welcome announcement or special features announcement banner at the top of the screen on a Magento site (188.8.131.52). I want to be able to toggle the visibility / presence of this banner via a UI element in the backend.
I don't want to have to edit my static blocks (beyond set-up), nor have to have the store owner navigate the backend to disable / enable, beyond a menu item or similar simple UI. Does Magento have any built-in mechanism to allow for this sort of UI control?
Here's some code snippets:
In the CMS, I created a static block with title "Header Hello Block" and id "header_hello_block", which looks like this:
<div class="holder"> <div class="hellobar">Hello, world!</div> </div>
and in my
app/design/frontend/default/themename/layout/page.xml I've entered the following, just after the html_header:
<block type="cms/block" name="header_hello_block" before="-"> <action method="setBlockId"> <block_id>header_hello_block</block_id> </action> </block>
According to this article, that's all I should need to do in order to see my block rendered. What am I missing?