0

I have my latest product page called in the file latest.phtml, I need to add a cms block in this page updating its layout.xml. Note that this is not a cms page. I want to put the block in the left sidebar.

Thanks in advance

1

Open .xml file of your related page say latest.phtml and add this code

<reference name="left">
    <block type="cms/block" name="block_name">
     <action method="setBlockId"><block_id>Your_Block_id</block_id></action>
    </block> 
</reference>
  • How can i find the .xml file retaled to my phtml ? this file is inside my theme/template folder – Ylli Dec 19 '14 at 9:32
  • does your .phtml file belong to any extension?? – dh47 Dec 19 '14 at 9:33
  • I think its part of my theme. My theme is legenda by smartwave and this file comes with it – Ylli Dec 19 '14 at 9:34
  • in your layout folder do you have any file called local.xml – dh47 Dec 19 '14 at 9:37
  • yes is the layout of my theme, my problem is how to connect a specific block to this page – Ylli Dec 19 '14 at 9:38

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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