i18n not hiding menu items

jessicakoh - November 11, 2009 - 02:06
Project:Dynamic Persistent Menu
Version:6.x-1.2
Component:Code
Category:support request
Priority:normal
Assigned:Unassigned
Status:closed
Description

Thank you for this menu. Loving it.

I'm using this module for a multilingual website. Some of the menu items were set to a different language. Despite this, that menus item still being displayed.

I tried "Multilingual Variables" #313272.

// Primary and secondary links
  'primary-links',

Any idea what I can do?

#1

jessicakoh - November 16, 2009 - 02:23

Try this

'menu_primary_links_source',
'menu_secondary_links_source',
'menu_default_node_menu',
'dynamic_persistent_menu_menu_root',

#2

mnp - November 24, 2009 - 08:54

Not hiding for me
Is this working for you

#3

jessicakoh - November 24, 2009 - 09:05

Yes, it does.

Note, you will not see "This is a multilingual field". But it works.

When I change to my other language, it will display secondary menu.

#4

mnp - November 24, 2009 - 09:23

I created seperate primary menu items for two languages
it is showing all the menus

#5

jessicakoh - November 24, 2009 - 15:16

Do you see any variable listed in i18n_variables table? (If not, check your typo in settings.php)

Set both menu (primary and secondary) language to neutral.

1. On the block configuration for this block, "Menu root:", select Primary for your default language. Click Save.

2. Go to the same block configuration, now, enter the language code, e.g. http://example.com/zh-hans/admin/build/block/configure/dynamic_persisten..., Go to "Menu root:", select "Secondary Links"

Go back to your default language i.e. remove zh-hans in the URL. Verify that you have "Primary link" for your default language in "Menu root:".

If you can't see this, I suspect your variable is not right.

Post the last part of your settings.php (variable parts).

#6

mnp - November 26, 2009 - 05:24

@jessicakoh
Thank you so much
it's working great now
thanks for your help

#7

jessicakoh - November 26, 2009 - 05:26
Status:active» closed

no problemo.

 
 

Drupal is a registered trademark of Dries Buytaert.