Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

How do I rid of the poll from the frontpage? 
 
thecurve
Jr. Member
 
Avatar
Total Posts:  9
Joined:  2008-05-13
New York, US
 

I see that poll.xml loads the poll in the rhs of most pages.

<reference name="right">

But how do I specify that this block should not be displayed on the homepage?

David

 
Magento Community Magento Community
Magento Community
Magento Community
 
Joachim
Sr. Member
 
Avatar
Total Posts:  133
Joined:  2008-01-23
Netherlands
 

CMS -> Frontpage -> Custom Design -> Layout Update XML

<reference name-"right">
<
action method="unsetChild"><alias>poll</alias></action>
</
reference>

Check the alias of the poll.

 
Magento Community Magento Community
Magento Community
Magento Community
 
thecurve
Jr. Member
 
Avatar
Total Posts:  9
Joined:  2008-05-13
New York, US
 

Interesting. So a layout update. What file does this involve changing? (let’s say the admin UI didn’t exist)

Also, why isn’t poll mentioned in page.xml? I’m just trying to tease this apart, so I can better understand how magento works smile

 
Magento Community Magento Community
Magento Community
Magento Community
 
Joachim
Sr. Member
 
Avatar
Total Posts:  133
Joined:  2008-01-23
Netherlands
 

Please have around there is a lot written about these kind of things. There are different ways to update the layout, through the layout files and the XML updates.

Poll is mentioned at poll.xml

 
Magento Community Magento Community
Magento Community
Magento Community
 
thecurve
Jr. Member
 
Avatar
Total Posts:  9
Joined:  2008-05-13
New York, US
 

So it is safe to say that the layout files specify the default locations of each template, and the updates are quick and easy, page specific overrides?

Btw, the alias for poll was right.poll and that worked beautifully. However, I’m also trying to remove the popular tags. The alias for the tags is tags_popular, but that doesn’t seem to remove the tag block from the frontpage.

<reference name="right">
<action method="unsetChild"><alias>right.poll</alias></action>
</reference>

The above works, but below does not:

<reference name="left">
<action method="unsetChild"><alias>tags_popular</alias></action>
</reference>

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top