I have a client that wants to change the page name of the sitemenu page. It appears as "site map" on my installation. I cannot figure out what I need to change in order to change this to "Library" (don't ask).

I have looked through sitemenu.module, I have tried suppressing the page title, but I can't figure out where Drupal is pulling "site map" for the page name for the sitemenu index.

Interestingly enough, the site_map module has the same issue. Any ideas where I might look to effect this change?

bob

Comments

coreyp_1’s picture

For the Site Map Module change:

2 ways to do this:

1. change the menu link text to whatever... this will also change the page title (if it's not declared elsewhere).

2. If you want the menu link to say one thing, but the page title to say something else, then around line 74 in the site_map.module file, add:
drupal_set_title('This Is Only A Test');
It goes just before the print statement.

coreyp_1’s picture

For the Site Menu module
go to admin/settings/sitemenu
change Navigation Link Text to "Library".

This, of course, changes the Menu item to "Library" as well. If this is an issue, then we can look at other ways to solve the problem.

trailerparkopera’s picture

but didn't. I'll try the site_map hack to see if that works. Thanks for the reply!

coreyp_1’s picture

It should have worked.

The other hack will work here, too, just add the required statement to line 86 (or thereabouts) of sitemenu.module.

trailerparkopera’s picture

Still stuck here. I can't for the life of me figure out where sitemenu.module is grabbing "site map" as the title of the page. Tried the hack you suggested and all I got was Fatal error. I guess I'm not putting it in the correct place.

trailerparkopera’s picture

Basically, none of the hacks mentioned above worked for me. I simply duplicated the module, renamed it "library", then did a search/replace in library.module for "sitemenu" and replaced it with "library", et voila, problem somehow magically solved.

Ugly, but resolved.

heine’s picture

'site map' is (or should be) pulled from the database variables table as the variable sitemenu_overview_title.

This occurs in line 83 and 158. The default value, (when nothing is in the database) is the second argument to variable_get; 'sitemap'.
--
Tips for posting to the forums.
When your problem is solved, please post a follow-up to the thread you started.