veilig
veilig

Reputation: 5135

change magento admin nav menu title

I'm trying to change the name of the main nav title from "CMS" to "Content". But I'm not sure how to do this w/out touching the core files. can I override this in my module config file? or do I do this somewhere else? This is my first experience w/ magento

<adminhtml>
    <menu>
        <cms>
            <children>
                <feature translate="title" module="feature">
                    <title>Feature</title>
                    <sort_order>2</sort_order>
                </feature>
            </children>
        </cms>
    </menu>
    <acl></acl>
    <events></events>
    <translate></translate>
</adminhtml>

Upvotes: 2

Views: 4778

Answers (2)

Mark Jackson
Mark Jackson

Reputation: 43

Magento has a built in function available in the Admin to allow you to do this without touching ANY code at all. Why not just enable Translation in the Admin and then you can rename anything you want without changing anything!!

Go to [System] > [Configuration] > [Advanced] > [Developer] > [Translate Inline] and change "Enabled for Admin" to Yes.

When you save a little book icon will show up next to all menu items and most other text. Click the icon and a popup will show allowing you to rename it to anything you want. The results are stored in the Magento Translation csv files under your chosen Local and nothing at all is changed in the magento core. That is how Magento is designed to use translate not by editing the core.

After you are happy with the results turn Translation back off in Admin. BTW this works for the front end as well so you don't need to spend hours finding what file in your Theme is responsible for the text you want to change!! :)

Upvotes: 3

prodigitalson
prodigitalson

Reputation: 60413

You might try adding the title element for the cms element. Im pretty sure things share the same core structure at every nesting level of the config...

 <menu>
   <cms>
     <title>Content</title>
     <children>
       <feature translate="title" module="feature">
         <title>Feature</title>
         <sort_order>2</sort_order>
       </feature>
      </children>
    </cms>
  </menu>

Upvotes: 3

Related Questions