Skip to main content
9 events
when toggle format what by license comment
Feb 27, 2018 at 21:28 vote accept Greg Sims
Feb 25, 2018 at 16:02 comment added Greg Sims Yes -- the patch works for my use case. Thank you @4k4 for helping me fight through a few layers of this issue -- including applying a patch for the first time!
Feb 25, 2018 at 7:32 comment added 4uk4 Probably, did you try the patch?
Feb 24, 2018 at 23:28 comment added Greg Sims You are correct @4k4. I added my custom menus to the content type and English is now working well -- both the menu itself and the node edit menu settings. Spanish and Chinese are still an issue with node edit. When I set 'menu_name' => 'spanish' and 'langcode' => 'es', the menu_link_content is created correctly in the spanish menu. The node edit menu settings exists but always points to the english menu. Could this be the issue you pointed out above? I can't tell for sure.
Feb 24, 2018 at 9:17 comment added 4uk4 While there was a straightforward answer to your first question for the relationship, the follow-up about translation is difficult to answer in one post. There are different strategies to translate menus. The simple one is to translate the menu items. Different menus is a more advanced approach. One thing to check first, if you want to see the menu items of different menus you have to allow them in the configuration of the content type. And for the first approach, translating menu items in the node edit form, there is still an open issue drupal.org/project/drupal/issues/2648750
Feb 23, 2018 at 23:05 comment added Greg Sims I tested this again and set 'locked: true' when creating each of my three menus. This was not the solution I hoped for. The three menus are created as before. There is still no data in "Menu Settings" of the associated nodes. @4k4
Feb 23, 2018 at 22:35 comment added Greg Sims Please see my comment above @4k4.
Feb 23, 2018 at 22:26 comment added Greg Sims This is moving in the direction -- thank you 4k4! I have tested this and it works with 'menu_name' = 'main'. In my case I have three custom menus that I created in code. One each for: English, Spanish and Chinese. When I try to use one of these menu names, no entry exists in the node edit. I looked at the configuration differences between 'main' and my three menus. I noticed that 'locked: true' for 'main'. My three menus have 'locked: false'. Could this have something to do with why I am having problems?
Feb 23, 2018 at 18:56 history answered 4uk4 CC BY-SA 3.0