Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hi.
I´ve making a multilanguage site. When I active footermap to see the principal menu I see the sitemap, but it shows the links of all languages, not only the current one, i mean, its translations too.
It seems the Footermap block does not filter by language.
Thanks for the module.
Comment | File | Size | Author |
---|---|---|---|
#8 | 0001-1065732-by-mradcliffe-giginos-i18n-friendly.patch | 4.33 KB | mradcliffe |
Comments
Comment #1
luckystrikerin CreditAttribution: luckystrikerin commentedsubscribing
Comment #2
mradcliffeI guess I should take a look at this again for Drupal 7. It was a bit out of scope for Drupal 6, but I will investigate again. #663960: Current language ignored in output at l18n site
Comment #3
mradcliffeThe only way I see to implement this is to generate several renders per language, cache, and then use based on the current user's language.
I'll see what I can do when I have time... The i18n module is fairly difficult to use.
Comment #4
criscomsubscribe
Comment #5
quazardous CreditAttribution: quazardous commentedsubscribe 6.x has the same pb
Comment #6
metakel CreditAttribution: metakel commentedI use a few languages on my sites and all languages' menu items were shown under the footermap, rendering this wonderful module useless on mine... :(
Hope that you can come out with the i18n version soon!
Comment #7
giginos CreditAttribution: giginos commentedI've added a quick solution to get the footermap work for multilang-pages. Hope this helps to add this feature to the next version:
#1 Add to footermap.module, method footermap_get_menu:
#2 Add in footermap.tpl.php:
Comment #8
mradcliffeThank you for your work. I have incorporated the basic idea into footermap.module and footermap.theme.inc with some changes.
We really shouldn't be defining functions in the template, but most of the logic can be used in template_preprocess_footermap().
I also need to change the caching from per_role to custom caching (again). This probably needs some further testing.
Instructions:
Comment #9
mradcliffeCommitting this.