Closed (fixed)
Project:
Site map
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
17 Oct 2008 at 13:25 UTC
Updated:
26 Nov 2008 at 21:52 UTC
Jump to comment: Most recent file
the message is not shown above the sitemap. While the method 'site_map_help()' does return the right message. And is being called by Drupal.
Where and how to fix?
Regards,
TheYOSH
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | site_map_menu_without_locale.patch | 1020 bytes | longwave |
Comments
Comment #1
frjo commentedThe locale variable has been renamed to language in Drupal 6, I had missed to change that. Committed to 6-dev.
Please try it out and report back here.
I just committed a function to have separate menus for each language also. Try that out also if you have any need for it. http://drupal.org/node/322307
Thanks for the bug report!
Comment #2
longwaveThe change to site_map.admin.inc does not work if locale is not installed - the variable used on the admin page has no language suffix, but _site_map_menus() always adds the current language. The attached patch fixes this.
Comment #3
frjo commentedOn my local test site the current 6-dev version of site map works with both locale module turned off and turned on.
Please notice that you need to enter a new/separate message for when the locale module is inactive.
Make sure you have the latest 6-dev version and try it out.
site_map.admin.inc,v 1.1.2.4
site_map.module,v 1.39.2.6
Comment #4
longwaveI am using the latest 6.x-dev version. This isn't related to the help message at the top, but the menu output (but it was caused by the commit mentioned in comment 1). On an English language site without locale enabled, the "Menus to include in the site map" admin menu item saves a variable called "site_map_show_menus", but _site_map_menus() looks for a variable called "site_map_show_menusen". This means that no menus are ever displayed on the sitemap page if the locale module is disabled.
Comment #5
frjo commentedSorry, I misread you post. I have now committed a fix for this to 6-dev.
site_map.admin.inc,v 1.1.2.5
site_map.module,v 1.39.2.7
Please check it out and report back here.
Comment #6
longwaveThis fix solves my issue, thanks.
Comment #7
theyosh commentedHi, sorry but _NO_ fix!
I have _NOT_ installed locale. And I don't wan't to. If you have local first installed and than turned off... that is not the same as never installed it. Because when you install a module, there are database changes. And not they are not always cleaned up when you disable a module.
I still see no message above my sitemap.....
I only show the navigation part of the site. But that should not have any influence about it. Because it is a predefined message which should be shown always.
Is there a way that I can send you debug info? What information do you need?
Regards,
TheYOSH
Comment #8
frjo commentedtheyosh, do I understand correctly that you have the latest versin of 6-dev
site_map.admin.inc,v 1.1.2.5
site_map.module,v 1.39.2.8
You have entered a "Site map message" at admin/settings/sitemap.
But when you view your site map the message is not displayed at the top of the page?
Comment #9
theyosh commentedHi,
sorry my mistake. It was a problem in my theme. The $help var was not shown. I thought that the message text should been in the $content var and not in the $help var.
So the problem is fixed. Probably already a wile ago. Just thought about that it could be something in my theme.
But thanks a lot!
TheYOSH