Меню расширений Magento

Как я могу переместить ссылку на расширение (стандартное расширение для исследования NEWS) из главного меню в меню «Акции»?

Расширение Magentostudy -> NEWS имеет:

<config>
<menu>
     <news translate="title" module="magentostudy_news">
        <title>News</title>
        <sort_order>65</sort_order>
        <children>
            <manage translate="title" module="magentostudy_news">
                <title>Manage News</title>
                <action>adminhtml/news</action>
                <sort_order>50</sort_order>
            </manage>
        </children>
     </news>
</menu>

<acl>
    <resources>
        <admin>
            <children>
                <news translate="title" module="magentostudy_news">
                    <title>News</title>
                    <sort_order>65</sort_order>
                    <children>
                        <manage translate="title">
                            <title>Manage News</title>
                            <sort_order>0</sort_order>
                            <children>
                                <save translate="title">
                                    <title>Save News</title>
                                    <sort_order>0</sort_order>
                                </save>
                                <delete translate="title">
                                    <title>Delete News</title>
                                    <sort_order>10</sort_order>
                                </delete>
                            </children>
                        </manage>
                    </children>
                </news>
                <system>
                    <children>
                        <config>
                            <children>
                                <news translate="title" module="magentostudy_news">
                                    <title>News Management</title>
                                </news>
                            </children>
                        </config>
                    </children>
                </system>
            </children>
        </admin>
    </resources>
</acl>

I know that code this code provide some logic to make admin menu link to my extension visible, bu HOW can I move it to "Promotions" menu!

Я знаю, что это простая задача, но команда Magento пишет «идеальную» документацию, так что...


person Lubomur Marshal    schedule 31.10.2013    source источник


Ответы (1)


Обновите XML-код раздела меню с помощью кода ниже:

<menu>
 <promo translate="title" module="magentostudy_news">        
    <sort_order>65</sort_order>
    <children>
        <manage translate="title" module="magentostudy_news">
            <title>Manage News</title>
            <action>adminhtml/news</action>
            <sort_order>50</sort_order>
        </manage>
    </children>
 </promo>
</menu>

Он добавит ссылку Manage News под Promotions.

Надежда поможет!

person Rajiv Ranjan    schedule 31.10.2013
comment
но как? Как это работает? Я не могу найти Акции в этом коде! - person Lubomur Marshal; 31.10.2013
comment
@LubomurMarshal, Magento использует <promo> для модуля рекламных акций. Если это работает, можете ли вы также отметить это как полезное. - person Rajiv Ranjan; 31.10.2013
comment
моя репутация 10, 15 требует! - person Lubomur Marshal; 01.11.2013