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

Block problem
 
XiTo
Jr. Member
 
Total Posts:  3
Joined:  2012-08-14
 

Hi all,

I have a problem with my block in Magento. I’ll try to do my best to explain :
I have my home page with 3 verticals blocks. When I’m in the products page I want to have a different right block. I used “<remove name="right" />” to delete the right block and now I want to create a new one, BUT it doesn’t work. To have a new one I did :

<reference name="droit">
<
block type="cms/block" name="droit" as="droit" template="catalog/product/resume.phtml"/>
</
reference>

Thanks a lot for your help.

XiTo

 
Magento Community Magento Community
Magento Community
Magento Community
 
XiTo
Jr. Member
 
Total Posts:  3
Joined:  2012-08-14
 

No idea? :’(

I’m working hardly on that but no solution for the moment.

Thanks a lot if you can try to help me.

 
Magento Community Magento Community
Magento Community
Magento Community
 
Siggi_Schmitz
Enthusiast
 
Avatar
Total Posts:  811
Joined:  2011-07-03
 

Please post the XML - part from catalog.xml where the “old” right block is called.
Then i can tell you, how to remove the old and replace it with a new one.

 
Magento Community Magento Community
Magento Community
Magento Community
 
XiTo
Jr. Member
 
Total Posts:  3
Joined:  2012-08-14
 

Thanks a lot for your reply, I found a solution (I think, i\’m not sure) and now I have a new block, I just have to find how we can include a cms page in this block.

For the remove :

<reference name=\"root\">
            <
remove name=\"right\"/>
            <
action method=\"setTemplate\"><template>page/2columns-right.phtml</template></action>
            <
action method=\"setTemplate\"><template>catalog/product/resume.phtml</template></action>
        </
reference>

As you can see I used \"setTemplate\" to insert my phtml \"resume.phtml\". I can see my block but I don\’t know If it\’s a good or bad solution.

Thanks a lot again for your reply.

XiTo

 
Magento Community Magento Community
Magento Community
Magento Community
 
ashishkhadpe
Member
 
Total Posts:  58
Joined:  2011-08-22
 

Hi

I am also facing same issue any reply to this post ?????
Magento coders

Ashish Khadpe
Renderindia Infotech Bangalore
magento e-commerce development company Bangalore

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