3

When adding a new widget instance in magento (Admin > CMS > Widget Instance) you need to select layout update for it. In the block reference option, there are several default areas like page top, page bottom, left, right.... How can I add my custom new area to this selection box?

1 Answer 1

6

Ok. Found the answer. Go to page.xml, add this

<block type="core/text_list" name="custom_script" as="custom_script" translate="label">
    <label>IMPORTANT TO HAVE THIS TAG</label>
</block>

The important tag is <label>. Without this you won't see the area in selection box. Thank Anthony Nguyen for this.

Sign up to request clarification or add additional context in comments.

2 Comments

Only add this kind of code to your own design files unless you want to lose it when you update Magento.
Where is page.xml located so i can mimic folder structure in my theme?

Your Answer

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.