3

How can I call a static block from another static block manually because i have a customized theme.

I also set block from Magento admin panel, it's working but I dont need this admin method

I think I have to put some static block code in the WYSIWYG editor of the static block admin pannel but which code is it?

  • Can you explain what you mean with " I dont need this admin method" ? I'm not exactly sure what you are trying to achieve and how. – Fabian Schmengler Feb 10 '16 at 11:41
5

to output a static block inside another static block, you basically can do two things:

  1. Insert a Widget:
    • in the Editor toolbar, click on insert Widget (2. from the left)
    • Choose Static Block
    • Choose the Block you want to insert

you should end up with a code like this (if you hide the wysiwyg editor)

{{widget type="cms/widget_block" template="cms/widget/static_block/default.phtml" block_id="1"}}

  1. Insert a cms Block directly:

{{block type="cms/block" block_id="your_block_id"}}

  • ThankYou Mr.David Verholen – Parth Jani Mar 1 '16 at 6:52

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.