0

I want to insert a cms block in a tab content. So I inserted the below code in catalog.xml:

<block type="cms/block" name="care" as="care" >  
   <action method="addToParentGroup"><group>detailed_info</group></action>
   <action method="setBlockId" translate="value"><block_id>Care</block_id></action>
</block>

But the block is not displayed in the tab content. Please help.

1 Answer 1

1

Use below code to add CMS block as TAB :

<block type="cms/block" name="care" as="care" >  
    <action method="addToParentGroup"><group>detailed_info</group></action>
    <action method="setTitle" translate="value"><value>CMS block Title</value></action>
    <action method="setBlockId" translate="value"><block_id>Care</block_id></action>
</block>
3
  • yes it is working. Thank you. Do you know how to hide that product collateral tab when there is no content? If you know kindly help please.
    – Ramya
    Commented May 27, 2016 at 6:15
  • Please raise a new question, it's hard to show here in comments Commented May 27, 2016 at 6:22
  • okay. If you know kinly help me. I will raise it as new qeustion. Thank you for your response. I have upvoted and accepted your answer.
    – Ramya
    Commented May 27, 2016 at 6:24

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.