The word 'navigation'

sandyme - November 11, 2006 - 19:55

Hello, I'd like to change the word 'navigation' and write any one I decide.
Do you know if this is possible?
Thanks

the word navigation where

VeryMisunderstood - November 11, 2006 - 20:01

the word navigation where ?

you can enable the locale module and create a site specific language that changes all uses or navigation to something else but this may not be the best method depending on where exactly you are trying to change this specific word.

to use the locale module to accomplish this and create a site specific language these handbooks pages will proove useful http://drupal.org/handbook/modules/locale

From the admin interface

glendac - November 11, 2006 - 22:15

The built-in 'navigation' menu label doesn't seem to be editable from administer >> menus but you can control its placement and visibility via administer >> blocks. You can however create new names for other default menu labels like 'news aggregator' by disabling it in administer >> menus and then creating a new menu category under which you can add your feeds as menu items.

two more methods

franc23 - January 19, 2007 - 05:54

two more methods

franc23 - January 19, 2007 - 05:52

In addition to the above methods, you can do the following two methods if you really do not want to install locale module(I did not want to because the more modules you use, the slower it can be on some webhosts, lesser is better in some places.)

Before making any changes, make a backup of the file here so you can go back to your default stuff if anything goes wrong.

First -> Find and open the 'drupalinstallationdirectory'/includes/menu.inc file. Search for

'title' => t('Navigation')

It can be around the 1027th line in the file. All you have to do is to change the 'Navigation' to 'anything' you want so it looks like this.
'title' => t('anything')
It will then appear with that 'anything' even when you are in the admin/menus path or anywhere else in the site.

Second -> I had a different need, wanted one menu title for logged in users and another for anonymous.
I added the following code directly in there just below the global $user; around the 1018 line and above the $_menu = array(); part of the file.

// Custom code to make the login menu say customized username after logging in, else show nothing

$navigation = 0; // defining a variable in php
if (!$user->uid) {
// Change the following line's text to whatever you want.
$navigation = 'Hello';
}
elseif ($user->uid) {
// The following line will display a custom line(welcome- in my case) plus the username of the person.
$navigation = 'Welcome ' . check_plain($user->name);
}

Then I changed the 'title' => t('Navigation') as stated above to

'title' => t($navigation)

Note that this time, when I use a variable=$navigation, there are no quotes inside the brackets. If you include the quotes you will end up seeing $navigation as the menu heading rather than what you specify.

Hope this helps, it really helps if you want to save up on db access with the number of modules used.

http://www.dilipfrancis.com/

The only problem with the

VeryMisunderstood - January 19, 2007 - 22:08

The only problem with the method above is that an update/upgrade will overwrite these changes because core is being altered. Thus if the above method is indeed used, make sure to make notes for yourself, so that you can reincorporate the changes necessary when an update or upgrade is being used.

remembering changes is important

franc23 - January 20, 2007 - 17:27

very true!!! Documentation is so very important, someone else should also know what is happening across the site if a different developer is to work on it in the future.

http://www.dilipfrancis.com/

Menu 'navigation' title

djax80 - March 8, 2007 - 14:10

Hi

I tried Method 1, but it didn't work for me....thanks for the tip though

Using Drupal 5.1...

Did i need to make the changes before installing Drupal....or do i need to run update.php or anything else..

Any other ideas??

Thank you

Djax

In Drupal 5 all you have to

VeryMisunderstood - March 9, 2007 - 04:28

In Drupal 5 all you have to do is goto administer -> blocks

click configure next to the navigation block, Add the new block title to the block title field and submit.

It worked eventually...great

djax80 - March 9, 2007 - 15:46

The method i said didnt work...actually did.....it just took a while to update
Not sure why, it wasnt the browser cache...

Anyway it works...thanks for the tip...nice one

Thank you

Djax

keep in mind that the

VeryMisunderstood - March 10, 2007 - 00:33

keep in mind that the browser is not the only place you have cache, cache is also stored in the database of your Drupal installtion.

 
 

Drupal is a registered trademark of Dries Buytaert.