[wp-trac] [WordPress Trac] #14750: Add menus, menu items to import and export
WordPress Trac
wp-trac at lists.automattic.com
Wed Sep 1 05:28:38 UTC 2010
#14750: Add menus, menu items to import and export
-----------------------------+----------------------------------------------
Reporter: nacin | Owner:
Type: feature request | Status: new
Priority: normal | Milestone: 3.1
Component: Import | Version:
Severity: normal | Keywords: dev-feedback
-----------------------------+----------------------------------------------
== Export ==
Menus and their menu items should be included in the WXR. Switching
can_export to true should mostly rectify this.
However, that introduces some issues. Including them in the post type and
taxonomy dropdowns is not intuitive. You either need to export everything,
or just export the menu tax and item PT (and you need to know to select
both).
Thus to me it makes sense that can_export might need to be split into A)
showing it in the export UI, and B) can it be included in the WXR file. We
can then handle our own UI, perhaps with a checkbox, "Export menus and
menu items." Or something.
That of course brings up another concern, which is that menu items have
associated posts, which means they need to also be exported. So really you
should not be able to export just menus and menu items, unless of course
all of your menu items are custom links (but how can we know that?).
Ironically, a simplified export.php from 2.9 would have served us well
here, as we'd always just export everything.
== Import ==
Offering a patch for import is particularly challenging, because we'll not
only need to map the post-taxonomy relationships (which the importer
should handle for menus out of the box) but also the relationships between
a menu item and the associated post or term. That introduces new problems.
What happens when the associated post or term is not included in the WXR
file? Does the menu item convert to a custom link? (Is there any
indication that it became broken on import?) Or do we decline to import
the menu item? (What about children menu items?)
Clearly a lot of questions here. I think it is pretty safe to say that we
do want menus exportable (they are much more like content than basic
settings), but the implementation will not be easy. Suggestions welcome.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/14750>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list