I’ve gone thru the tutorial on Magento layouts here: [url]http://www.magentocommerce.com/design_guide/articles/intro-to-layouts
1. I’ve downloaded a social bookmarketing widget (are these even called widgets like they are in wordpress and joomla?). What’s the easiest way to get it into my right column? I tried creating a static block and adding the widget to that. Then went into cms.xml and added
<block type=”cms/block” name=”test”>
<action method=”setBlockId”><block_id>test</block_id></action>
</block>
It showed up, but it didn’t have the css formatting that the rest of the widgets have. You can see what I mean here: [url]http://www.renownhearingaids.com
Twitter Facebook Linkdin MySpace Digg Technorati Del.icio.us Live Reddit StumbleUpon
How do I get the widgets I download from connect in properly?
2. How do i add the widgets that have come stock with my theme? I’m using mapple, and have a number of widgets that came in the template folder. My question is how do I add these into the xml file? How do I know what actions are available for me to use?
For example, one of the widgets that was already added in the theme – poll – has the following in the xml file:
<block type=”poll/activePoll” name=”right.poll”>
<action method=”setPollTemplate”><template>poll/active.phtml</template><type>poll</type></action>
<action method=”setPollTemplate”><template>poll/result.phtml</template><type>results</type></action>
</block>
How would I know the action method setPollTemplate and the template names poll and results?
One of the included widgets that I want to add is smartmenu. One of the included files is accordian_left.phtml. How do I set this up in the xml?
3. Can you do layout updates from the backend?
Looking at the social bookmark widget, i see there is a section called layout update, but the block reference is empty? Aren’t the block references stuff like right, left, ect. Why aren’t they appearing? How do I create a block reference for this widget if I need to create one?