Download & Extend

Entered Navigation Link Text not Displaying

Project:SiteMenu
Version:6.x-1.x-dev
Component:Code
Category:bug report
Priority:minor
Assigned:Unassigned
Status:active

Issue Summary

Since no one has brought this up, I suppose I will --- no matter what you do, when you change the "Navigation Link Text", the displayed title for the site map always remains "Site map".

I fixed this in my copy, but I figured you would want to include it in your next release ...

The problem is in line 39 of the sitemenu.module file. Currently, it reads like this:

'title'    => variable_get('SITEMENU_OVERVIEW_TITLE', t('Site map')),

Those single quotes around SITEMENU_OVERVIEW_TITLE seem to mess things up and cause the 'title' element of the $items array to always be set to the default value of 'Site map'.

So I dropped those single quotes:

'title'    => variable_get(SITEMENU_OVERVIEW_TITLE, t('Site map')),

Now, whatever I put in the "Navigation Link Text" field in the administrative web-form shows up as the title for my site map page.

Hope this helps. :-)

Comments

#1

Version:5.x-1.0» 6.x-1.x-dev

This is still a problem in 6.x-1.x, but has a different solution. In theme_sitemenu_page(), the variable $title is initialized, but never used. To fix, add a call to drupal_set_title($title); after initializing $title.