Skip to content
This repository has been archived by the owner on Nov 28, 2019. It is now read-only.

Implement wxr importer #22

Open
26 of 43 tasks
derpixler opened this issue Dec 16, 2015 · 2 comments
Open
26 of 43 tasks

Implement wxr importer #22

derpixler opened this issue Dec 16, 2015 · 2 comments

Comments

@derpixler
Copy link
Contributor

derpixler commented Dec 16, 2015

We have to implement a custom wxr importer for the created wxr export files from single wmpl installation. We could not use the WordPress Importer-Plugin, there is no Hook to parse custom wxr elements.

If wpml2mlp in a Multisite aktiv also there have to exisxts under (Tools/import)[wp-admin/import.php]a section for the wpml2mlp wxr parser.

wpml2mlp_import_modul

At the 0.0.1.2 version of wpml2mlp we have turned the xliff export format to the WordPress defauld wxr. On every Post there have Translations that are appended at the post item.

    <wp:translation lang="en" post_id="2401"/>
    <wp:translation lang="de" post_id="2491"/>
    <wp:translation lang="nl" post_id="2071"/>
    <wp:translation lang="es" post_id="2566"/>
    <wp:translation lang="fr" post_id="2593"/>

Our wxr parser have to map the Translations to mlp.


Subtasks:

  • Importer: XML-Parsing #25 Importer: XML-Parsing
    • Iterators
    • User parser
    • Term parser
    • Post parser
    • Comment parser
  • Prevent double Imports (Implement Import Filters)  #49 Importer: Element Filter
    • Duplicate post filter
    • Duplicate term filter
    • Duplicate comment filter
    • Duplicate user filter
  • Importer: Datawriting #26 Importer: Datawriting
    • User Importer
    • Term Importer
    • Post Importer
    • File importer
    • Comment Importer
  • Importer: API #32 Importer: API
    • Type\ImportUser
    • Type\ImportTerm
    • Type\ImportPost
    • Type\ImportComment
  • Modules: Object worker (connect iterators, parser, filters ( Prevent double Imports (Implement Import Filters)  #49 ) and importer)
    • User
    • Terms
    • Posts
    • Comments
  • Module: MLP relation
    • Link posts
    • Link terms
  • Ancestor resolving
    • resolve post ancestors
    • resolve term ancestors
    • resolve comment ancestors
  • Relation resolving
    • post/author relations
    • comment/post relations
    • post/term relations
  • Logging
  • WP-CLI
    • import command
  • DI
    • Configure DI Container
@derpixler derpixler added this to the 0.0.1.2 milestone Dec 16, 2015
@bueltge
Copy link
Member

bueltge commented Dec 17, 2015

https://github.com/humanmade/WordPress-Importer

Helpful, I hope it.

@dnaber-de
Copy link
Member

@bueltge The hint about XML pull parsers in McCue's post is a good one.

@derpixler: We could go with a combination of XMLReader and SimpleXML: http://stackoverflow.com/a/1835324/2169046

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants