Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在 magento(Admin > CMS > Widget Instance)中添加新的小部件实例时,您需要为其选择布局更新。在块引用选项中,有几个默认区域,如页面顶部、页面底部、左侧、右侧......如何将自定义新区域添加到此选择框?
好的。找到了答案。去page.xml,添加这个
page.xml
<block type="core/text_list" name="custom_script" as="custom_script" translate="label"> <label>IMPORTANT TO HAVE THIS TAG</label> </block>
重要的标签是<label>. 没有这个,您将看不到选择框中的区域。感谢Anthony Nguyen。
<label>