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?

Fabian Schmengler
66.2k25 gold badges191 silver badges422 bronze badges
asked Feb 10, 2016 at 5:52
1
  • 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. Commented Feb 10, 2016 at 11:41

1 Answer 1

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"}}

answered Feb 10, 2016 at 6:07
1
  • ThankYou Mr.David Verholen Commented Mar 1, 2016 at 6:52

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

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

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.