Reputation: 1
I'm new to Magento and I'd like to ask how can I display a banner in CMS pages? I tried to create a new banner with some simple characters as the content and linked it to a new widget. However, the banner was not displayed on the specified page I selected. Besides, when I pressed the "Insert Widget..." button for a static block and selected "Banner Rotator", it is strange that the options displayed below the screen were banners, instead of widgets. Anyway I selected the banner I just created, but it could not be shown as well.
Please help, thank you.
Upvotes: 0
Views: 7651
Reputation: 2500
In order to show a banner on a cms page, you can create a static block with required HTML.
add it to the layout page for ex in : app\design\frontend\default\newcode\layout\local.xml
add following code in the above created file :
<layout version="0.1.0">
<cms_index_index>
<reference name="content">
<block type="cms/block" name="custom.blockid">
<action method="setBlockId">
<block_id>custom_blockid</block_id>
</action>
</block>
</reference>
</cms_index_index>
</layout>
Assuming that id of your static block is custom_blockid
Read more at http://www.magentocommerce.com/blog/comments/introducing-magento-widgets/
Upvotes: 2
Reputation: 647
Hope that this helps you as I guide to achieving what you want.
Upvotes: 0