Ashfame
Ashfame

Reputation: 1759

Magento admin menu link stopped working after upgrade

Before upgradation to EE v1.12.0.2, we were running v1.10.1.1, at which point this code works fine to add an external link to the menu.

<?xml version="1.0"?>
<config>
    <modules>
        <Clean_Integration>
            <version>1.0.0</version>
        </Clean_Integration>
    </modules>
    <global>
        <models>
            <customer>
                <rewrite>
                    <customer_api>Clean_Integration_Model_Customer_Customer_Api</customer_api>
                </rewrite>
            </customer>
        </models>
        <helpers>
            <coaching>
                <class>Clean_Integration_Helper</class>
            </coaching>
        </helpers>
    </global>
    <frontend>
        <layout>
            <updates>
                <Clean_Integration module="Clean_Integration">
                    <file>cleanintegration.xml</file>
                </Clean_Integration>
            </updates>
        </layout>
    </frontend>
    <adminhtml>
        <menu>
            <coaching translate="title" module="Integration">
                <title>Coaching</title>
                <sort_order>71</sort_order>
                <url>/appointments/sync/backend/</url>
            </coaching>
        </menu>
        <acl>
            <resources>
                <admin>
                    <children>
                        <coaching translate="title">
                            <title>Coaching</title>
                        </coaching>
                    </children>
                </admin>
            </resources>
        </acl>
    </adminhtml>
</config>

We had a link like domain.com/appointments/sync/backend/ with this but now with upgrade the menu entry appears but its not a link anymore. So, I am guessing something was changed in Magento which breaks this, any ideas?

Upvotes: 1

Views: 562

Answers (1)

MagePal Extensions
MagePal Extensions

Reputation: 17656

<?xml version="1.0"?>
<config>
    <modules>
        <Clean_Integration>
            <version>1.0.0</version>
        </Clean_Integration>
    </modules>
    <global>
        <models>
            <customer>
                <rewrite>
                    <customer_api>Clean_Integration_Model_Customer_Customer_Api</customer_api>
                </rewrite>
            </customer>
        </models>
        <helpers>
            <integration>
                <class>Clean_Integration_Helper</class>
            </integration>
        </helpers>
    </global>
    <frontend>
        <layout>
            <updates>
                <integration>
                    <file>cleanintegration.xml</file>
                </integration>
            </updates>
        </layout>
    </frontend>
    <adminhtml>
        <menu>
            <integration translate="title" module="integration">
                <title>Coaching</title>
                <sort_order>71</sort_order>
                <action>appointments/sync/backend/</action>
            </integration>
        </menu>
        <acl>
            <resources>
                <admin>
                    <children>
                        <integration translate="title">
                            <title>Coaching</title>
                        </integration>
                    </children>
                </admin>
            </resources>
        </acl>
    </adminhtml>
</config>

Create in /app/code/local/Clean/Integration/Helper/Data.php

<?php
class Clean_Integration_Helper_Data extends Mage_Core_Helper_Abstract
{

}

Take a look @ Create a sample admin module for form processing

Upvotes: 1

Related Questions