I am creating category page and i want to add two static blocks to it. While I was going through CMS/Static Blocks, I realized I can Only add One Static Block to any page. I couldn't find anything where i can add 2 or more static blocks. Is there a way i can add two or more such static blocks in a single category page.
Magento – Magento: How to add two or more static Blocks on category page
cmsmagento-1.8static-block
Best Answer
You can add any number of static blocks in any page in anywhere as you desire.
Since you need to add two static blocks.. create two static blocks through admin.(
CMS -> Static Blocks
). Let the identifiers used for two static blocks bemystaticblock_1
andmystaticblock_2
. Then you can use following code directly in your page (phtml file) in order to display your static blockYou can also add static blocks through your layout file. An example is shown below
Then go to the template file where you need to display the static block and add the following code in the appropriate location
There is lot of tutorials regarding this topic. Please make a ruff idea about static blocks and their usages. Good luck