Active
Project:
Feeds
Version:
8.x-3.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
24 Jan 2021 at 12:59 UTC
Updated:
21 Feb 2021 at 12:31 UTC
Jump to comment: Most recent
Hi all!
I need to import a lot of menu items with 2-3-4 nesting levels
I don't understand how to set parent in the CSV file and in the Feeds Mapping
Please help
Comments
Comment #2
eugene bocharov commentedSame here. If anybody knows if it's possible please share.
Comment #3
megachrizI've tried setup a feed type with the "Custom menu link" processor.
I also manually created a menu with a link and a child link. I inspected the child link with the Devel module and looked what the value for "parent" was:
So the first issue is that parent does not contain the ID of the parent menu link, but a string consisting of what seems to be the link's bundle (or subtype) and the parent menu link's UUID.
The Custom Menu Links module declares the property "parent" as a string:
This makes Feeds think it is just a simple text field with no special meaning. That's the second issue. The module has special cased this property and Feeds has no way of knowing that.
Long story short, importing a menu hierarchy with Feeds is not yet possible. To achieve this, a FeedsTarget plugin should be written especially for the menu link parent property.